Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 30.159.437 Times

OpenInteract2::TT2::Plugin 1.99_06

  Date Added: February 01, 2010  |  Visits: 637

OpenInteract2::TT2::Plugin

Report Broken Link
Printer Friendly Version


Product Homepage
Download (75 downloads)

OpenInteract2::TT2::Plugin is a Perl module for custom OpenInteract functionality in templates. SYNOPSIS # Create the TT object with the OI plugin my $template = Template->new( PLUGINS => { OI => OpenInteract2::TT2::Plugin }, ... ); my ( $output ); $template->process( package::template, %params, $output ); # In the template (brief examples, see below for more) Here is what the plugin can do: < ul>< li>[% OI.show_all_actions.join( "n < li>" ) -%]< /ul> Here are plugins available to you: [% OI.show_all_plugins.keys.sort.join( , ) %] Here are all the parameters passed to the request: [% OI.request_param.sort.join( , ) %] And the value of a particular parameter: last name: [% OI.request_param( last_name ) %] [% OI.action_execute( error_display, error_msg = error_msg ) -%] # Note that you can also use the MSG function [% OI.msg( mypage.intro, OI.login.full_name ) %] # Note that you can also use the LH variable [% mh = OI.msg_handle %] [% mh.maketext( mypage.intro, OI.login.full_name ) %] [% mh.maketext( mypage.learnmore ) %] [% OI.box_add( contact_tools_box, title = Contact Tools, weight = 2 ) -%] [% object_info = OI.object_description( object ) %] This is a [% object_info.name %] object. Is the object in the class? [% OI.class_isa( object, SPOPS::DBI ) ? yes : no %] Is the SPOPS object writable? [% IF OI.can_write( object ) %]Youre special![% END %] [% action = OI.action %] Action that called this template: [% action.name %] Security for action: [% action.security_level %] found, [% action.security_required %] required Properties of action: [% action_prop = action.properties %] [% FOREACH key = action_prop.keys %] [% key %] = [% action_prop.$key %] [% END %] Parameters of action: [% action_param = action.param %] [% FOREACH key = action_param.keys %] [% key %] = [% action_param.$key %] [% END %] Today is [% OI.date_format( now, %Y-%m-%d %l:%M %p ) %] the [% OI.date_format( now, %j ) %] day of the year [% d = OI.date_into_object( object.updated_on, %Y-%m-%d ) -%] [% OI.action_execute( date_select, month_value = d.month, day_value = d.day, year_value = d.year, blank = 1, field_prefix = updated_on ) -%] [% INCLUDE form_checkbox( name = is_in_print, value = TRUE, is_checked = OI.as_boolean( book.is_in_print ) ) -%] Is in print? [% OI.as_boolean_label( book.is_in_print ) %] Is in print? [% OI.as_boolean_label( book.is_in_print, You betcha, No way ) %] [% OI.limit_string( object.description, 30 ) %] var person_last_name = [% OI.javascript_quote( person.last_name ) %]; [% OI.limit_sentences( news.news_item, 3 ) %] [% score = grade.score / test.total %] Your grade is: [% OI.percent_format( score ) %] You have [% OI.money_format( account.balance ) %] left to spend. Hello [% OI.uc_first( person.first_name ) %] You are important so I must speak to you loudly [% OI.uc( person.last_name ) %] [% OI.html_encode( news.news_item ) %] Item: [% OI.html_decode( news.news_item ) %] # Add parameters to an existing URL [% display_no_template_url = OI.add_params_to_url( my_path, no_template = yes ) %] # Works, but not as useful... [% edit_url = OI.make_url( BASE = /User/show/, user_id = OI.login.user_id, edit = 1, show_all = yes ) %] # Preferred way to generate URLs for actions [% edit_url = OI.make_url( ACTION = user, TASK = show, user_id = OI.login.user_id, edit = 1, show_all = yes ) %] [% image_url = OI.make_url( IMAGE = /images/foo.gif ) %] [% static_url = OI.make_url( STATIC = /generated/report-q1-2003.pdf ) %] [% theme = OI.theme_properties %] Background color of page: [% theme.bgcolor %] [% new_theme = OI.theme_fetch( 5 ) %] Background color of page from other theme: [% new_theme.bgcolor %] [% IF OI.logged_in -%] Hello [% OI.login.full_name %]. Your groups are: [% OI.login_group.join( , ) -%] [% ELSE -%] You are not logged in. [% END -%] Your last search: [% OI.session.latest_search %] < a href="[% OI.return_url %]">Refresh< /a> [% IF object.tmp_security_level >= OI.security_level.write -%] you can edit this object! [% END %].

Requirements: No special requirements
Platforms: Linux
Keyword: Action End Key Libraries Name Object Oi Date Oi Make Perl Module Url
Users rating: 0/10

License: Freeware Size: 931.84 KB
OPENINTERACT2::TT2::PLUGIN RELATED
Libraries  -  Rose::Object::MakeMethods::Generic 0.84
Rose::Object::MakeMethods::Generic is a Perl module that can create simple object methods. SYNOPSIS package MyObject; use Rose::Object::MakeMethods::Generic ( scalar => [ power, error, ], scalar --get_set_init => name, boolean...
28.67 KB  
Libraries  -  Object::Relation::DataType 0.1.0
Object::Relation::DataType is a Perl module with complex data types for TKP. The Object::Relation::DataType name space is set aside for the creation of complex data types for TKP. By "complex" I mean serializable objects, such as dates,...
235.52 KB  
Libraries  -  Object::Realize::Later 0.16
Object::Realize::Later is a Perl module with delayed creation of objects. SYNOPSIS package MyLazyObject; use Object::Realize::Later becomes => MyRealObject, realize => load; The Object::Realize::Later class helps with implementing...
10.24 KB  
Libraries  -  Template::Plugin::ByDate 0.03
Template::Plugin::ByDate is a Perl module that keeps/removes included text based on whether the current date is within range. SYNOPSIS [% USE ByDate %] [% FILTER ByDate starting = 2006-05-02 until = 2006-08-22 %] This text only shows up...
4.1 KB  
Libraries  -  Games::Object 0.11
Games::Object is a Perl module to provide a base class for game objects. SYNOPSIS package MyGameObject; use Games::Object; use vars qw(@ISA); @ISA = qw(Games::Object); sub new { # Create object my $proto = shift; my $class =...
84.99 KB  
Libraries  -  Regexp::Common::time 0.01
Regexp::Common::time Perl module contains date and time regexps. SYNOPSIS use Regexp::Common qw(time); # Piecemeal, Time::Format-like patterns $RE{time}{tf}{-pat => pattern} # Piecemeal, strftime-like patterns $RE{time}{strftime}{-pat =>...
35.84 KB  
Libraries  -  Class::Date 1.1.9
Class::Date is a perl module, which provides a simple date type for perl. You can create new Class::Date objects with a constructor from different scalar formats, array refs, and hash refs, and then you can easily manipulate it by the builtin...
34.82 KB  
Libraries  -  Date::Formatter 0.09
Date::Formatter Perl module is a simple Date and Time formatting object. SYNOPSIS use Date::Formatter; # create a Date::Formatter object with the current date and time. my $date = Date::Formatter->now(); # create a formatter routine for...
12.29 KB  
Libraries  -  Locale::Object::Language 0.75
Locale::Object::Language Perl module contains language information objects. Locale::Object::Language allows you to create objects containing information about languages such as their ISO codes, the countries theyre used in and so on. SYNOPSIS...
47.1 KB  
Libraries  -  Method::Declarative 0.03
Method::Declarative is a Perl module to create methods with declarative syntax. SYNOPSIS use Method::Declarative ( --defaults => { precheck => [ [ qw(precheck1 arg1 arg2) ], # ... ], postcheck => [ [ qw(postcheck1 arg3 arg4) ], #...
8.19 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.12.2
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
2.73 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB