Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
R
 readLangHash($path), PET::Util::IO
 README First!
 realProcess($dataref), PET::Util::PreMultiLang
 reloadModule, PET::Dispatcher
 remove, PET::Cache::FastAndFile
 resolveCall, PET::ActionMapper::Subdir
 resolveCall($uri)
$result
 run
S
 saveFile($file,$content), PET::Util
 searchSql, PET::Util::MySQL
 self_url(%p), PET::Dispatcher
$SERR, PET::RUN::FCGIExternalPreFork
 servePetAdmin, PET::Dispatcher
$SESSION, PET::Dispatcher
$SESSION_FILE_EXPIRES, PET::Session
 sessionChanged, PET::Session
 Sessions
 Sessions and redirects
 set
 set($key,$value,\%options, PET::Cache
 set($key,$value[\%ctrl]), PET::Cache::FastAndFile
 setAttr, PET::Dispatcher
 setConf, PET::Dispatcher
 setContentType, PET::Dispatcher
 setCookie(%p), PET::Dispatcher
 setHeader(%p), PET::Dispatcher
 setRC, PET::Dispatcher
 setSession, PET::Dispatcher
$SIN, PET::RUN::FCGIExternalPreFork
 skipOn($string), PET::Dispatcher
 slurp($file)
 slurp($filename), PET::Util::IO
$SOUT, PET::RUN::FCGIExternalPreFork
 SQLConnect, PET::Util::MySQL
 start
 Starting PET
 store
$STRICT, PET::Log
 substitute(\%map,$key), PET::Filter::PreMultiLang
 Summary--simplified
T
 tag_TABLIFY(%p), PET::Filter::GenHtml
%TAGS, PET::Filter::GenHtml
$TCONFIG, PET::Dispatcher
$TEMPLATE, PET::Dispatcher
 term, PET::RUN::PreForkEFCGI
 thaw, PET::Session
 thaw($bin), PET::Session::RamdiskHash
 The ActionMapper
 The big picture
 The directories
 thumbnail(%p), PET::Util::Image
 timeonly($ctrl), PET::CacheControl
 toBytesKM, PET::Util
 toCache, PET::Dispatcher
 TODO
 TODOs
U
 unimplemented or broken config parameters
 updateRowById, PET::Util::MySQL
$url
 usedAttributes, PET::Util::Tags
 Using a filter
 Using sessions
$Util
$UTIL, PET::Dispatcher
 Utils
V
 Variables
%VOLATILE, PET::Dispatcher
W
 Warranty
 What are filters?
 What is PET anyway?
 Writing your own
sub readLangHash
FIXME.
This is the “official” documentation for the Perl web programming framework called PET.
sub realProcess
Real processing using .lang files.
sub reloadModule
(Re)loads a (Perl) module using “require”.
sub remove
sub resolveCall
See PET::ActionMapper.
sub resolveCall
This method does the real URI-to-method mapping.
sub resolveCall
See: PET::ActionMapper
my $result
sub run
sub run
Called by external script pet_run_fcgiprocmanager.
sub run
sub saveFile
Loads a file.
sub searchSql
sub self_url
Calls the same method of CGI::Simple if ‘full’ is given, otherwise uses REQUEST_URI (default).
our $SERR
sub servePetAdmin
my $SESSION
Session object (if any).
our $SESSION_FILE_EXPIRES
sub sessionChanged
Set or get value of “SESSION_CHANGED”, which shows if the session should be synced.
The class PET::Session is only a “placeholder” for sessions.
Logging in a user using sessions.
sub set
sub set
sub set
Sets value identified by key.
sub set
sub setAttr
sub setConf
sub setContentType
sub setCookie
A method to create (and “emit’) a cookie.
sub setHeader
Sets header(s).
sub setRC
sub setSession
Shortcut to access the setter method of the implementing Session object.
our $SIN
sub skipOn
Cache-control, skipon tag.
sub slurp
Reads a file.
Reads a file.
sub slurp
Reads in a file.
our $SOUT
sub SQLConnect
sub start
sub start
sub start
This method is called at each page.
PET by default is an external application, which runs as a daemon (similar to Tomcat for Java or ZOPE for Python.)
sub store
Serialize and save session data.
sub store
Store $self->{SESSION} by $self->{SESID} to disk.
our $STRICT
True if we run under “strict mode”.
sub substitute
If you know Perl rather well, and you have some Linux/UNIX system administration skills, the above description is probably a bit too lengthy for you.
sub tag_TABLIFY
params, content
my %TAGS
my $TCONFIG
Config for Template.pm’s “new” method.
my $TEMPLATE
Template handling Object (of TT2).
sub term
sub thaw
Thaw the session object from “binary data”.
sub thaw($)
Returns the hashref (thawed) data.
(Will be completed later...)
The two most important directories are $BASEPATH and $DOCUMENTROOT.
sub thumbnail
This creates an “img” tag, while resizing the given image.
sub timeonly
Time-based expiration.
sub toBytesKM
Creates “bytes” value (an integer) from symbolic notation (e.g.
sub toCache
This document is under construction.
There are many parts of PET that needs finishing, rewriting or fine-tuning.
sub updateRowById
my $url
sub usedAttributes
Returns: array.
Filters are chainable, which means multiple filters can be run one after the other.
UNDER CONSTRUCTION
our $Util
my $Util
We use this for Template.pm.
our $Util
This is the main UTIL namespace, exported on-demand.
our $UTIL
Holdig Util instances, e.g.
There are many utility plugins for PET, and you can also write your own!
our %VOLATILE
For caching data in-memory (refreshing automatically).
THIS PACKAGE IS PROVIDED “AS IS” AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
Filters are modules that are used to preprocess .PET files before they are processed by the real template processor.
PET is a WEB programming framework / application server written in Perl, which means it is a software that helps programmers to create web-based applications.
This is an example on how to create a session handler.
Close