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

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

Serving Software Downloads in 956 Categories, Downloaded 50.331.715 Times

OpenInteract::UI::Main 1.62

  Date Added: August 06, 2010  |  Visits: 956

OpenInteract::UI::Main

Report Broken Link
Printer Friendly Version


Product Homepage
Download (89 downloads)



OpenInteract::UI::Main is the primary user interface assembly conductor. SYNOPSIS my $page = OpenInteract::UI::Main->handler(); send_http_headers(); print $page; # Subclass to define a new method for looking up template names: package OpenInteract::UI::LanguageChoice; use base qw( OpenInteract::UI::Main ); my $DEFAULT_LANGUAGE = en; sub choose_template { my ( $class ) = @_; my ( $language ); if ( $R->{auth}{is_logged_in} ) { $language = $R->{auth}{user}->language; } $language ||= $R->apache->param( lang ) || $R->{session}{lang} || $DEFAULT_LANGUAGE; my $R = OpenInteract::Request->instance; my $template = $R->{theme}->property_value( "template_$language" ) || $R->{theme}->property_value( main_template ); return $template; } This is the handler that puts the main content generated together with the template that surrounds the content on every page. The action has already been parsed from the URL for us so we look up the class/method used to generate the content and call them. We then put that content into the main template which is specified in our theme, unless we have received another directive to use a separate template or no template at all. Another alternative is that the content handler needs to return a file that is not HTML, such as a PDF, graphic, word processing document, archive, or whatever. If so the content handler should put the complete filename in the $R->{page}->{send_file} key. A content author can set a main template to use for the generated content by setting: $R->{page}{_template_name_} to the name of the template to use. This should be a fully-qualified template name -- such as mypkg::mytemplate. If you do not specify a package the OI template provider will try to find the template in the global template directory. You can also set a template that might vary by theme. This is not the name of the template directly but rather a placeholder within the theme which holds the name of the template. For instance, say you created a spooky_template and implemented it in multiple themes. Even though you as an author do not know what theme will be used, you can still pick the right template by setting: $R->{page}{_template_key_} And to use the simple template, the author should set: $R->{page}{_simple_} to a true value. The default simple template is base_simple, although you can set its name under the template_names key of your server configuration. Finally, the author can also set: $R->{page}{_no_template_} to display the content without a template at all. Main Template Variables Any content handler can send information to be placed directly onto the main template by setting information using the $R->{main_template_vars} hashref. For instance: $R->{main_template_vars}{current_weather} = Rainy and cold; would set the current_weather template variable for display on the main template and not on any of the content handlers. Note that while this sounds useful (and it can be), you will probably use it only very rarely. The boxes concept is more comprehensive and full-featured and will almost certainly do what you need..

Requirements: No special requirements
Platforms: Linux
Keyword: Content Language Libraries Main Openinteract Openinteractuimain Page Programming R- Template Ui User Interface
Users rating: 0/10

License: Freeware Size: 655.36 KB
USER REVIEWS
More Reviews or Write Review


OPENINTERACT::UI::MAIN RELATED
Utilities  -  Enveria IDE for Rapid Application Development 0.3
Enveria IDE for Rapid Application Development is an intuitive platform for programming robust GUI (graphical user interface) software. We have launched the Enveria RAD IDE as an open source application (https://sourceforge.net/projects/enveria)....
942.08 KB  
Home & Leisure  -  Windows Server 2008 R2 SP1 Multilingual User Interface Language Packs 2483139
Multilingual User Interface (MUI) Language Packs (Windows Server Language Packs) will allow you to enable a multilingual user interface in a Windows Server 2008 R2 environment. Adding one or more language packs to a Windows Server 2008 R2 image...
 
Utilities  -  Xwpe-ALPHA 1.5.30a
Xwpe is a programming environment with a user interface that mimics the Borland C and Pascal family of products. The user interface mimics the Borland C and Pascal family of products for MS-DOS. From within xwpe you can edit, compile, and debug...
225.28 KB  
Utilities  -  Grig 0.7.2
Grig is a graphical user interface for the Ham Radio Control Libraries. Grig project is intended to be simple and generic, presenting to the user the same interface regardless of which radio he or she uses. Grig is in an early stage with only...
450.56 KB  
Modules  -  user interface to change the language files 1.0
This tool is similar to define_language.php, but is much more easy to use.In the language files add at the end of a definition a comment, this comment will be displayed in order to help the user.example:define('NAVBAR_TITLE_2',...
 
Development Editors  -  GXDirector 6.0.0.27
GXDirector is a powerful Open Source software for product development, quality control, maintenance and general device control. With GXDirector you can read property values from a physical device, edit them if needed, and write new values back to...
16.43 MB  
Programming  -  XL Programming Language 2011
XL (eXtensible Language) is a general purpose compiled programming language. XL doesn't force you to use a limited set of concepts (such as 'objects'). Instead, it can be extended (through libraries) to use the concepts that are natural to your a
887.29 KB  
Programming  -  The Complex Language 0.1
The Complex Language project is an object oriented programming language intended for scripting or rapid prototyping of applications. The design goals were to have very few simple but powerful concepts and to be easy to use and easy to learn. The...
133.12 KB  
Code Management Tools  -  X Language 0.7.1
X Language is a new multi-syntax programming including a portable set of APIs to create console or graphical applications runnable on many platforms (UNIX/X11, Win32, ...). X Language comes with an interpreter, a compiler and a debugger. X...
358.4 KB  
Libraries  -  C/Invoke 1.0
C/Invoke is a library for connecting to C libraries at runtime. This differs from the typical method of interfacing with C, which involves writing static definitions which are then compiled to a machine-dependant format. C/Invoke provides a...
71.68 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
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  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
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...
3.88 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