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
F
 Features
 fetchfromdbh, PET::Util::MySQL
 fetchSQL(%p), PET::Util::MySQL
$FILECACHE, PET::Cache::FastAndFile
 Files and directories
 FILESIZE, PET::Cache::FastAndFile
%Filter, PET::Dispatcher
 Filters
%FILTERS, PET::Dispatcher
 finish, PET::Session
 First thing to read
$Form, PET::APISkeleton
 freeze, PET::Session
 freeze($data), PET::Session::RamdiskHash
 fromCache, PET::Dispatcher
 Functions
G
$GCONF, PET::Dispatcher
$GCONF_LASTMOD, PET::Dispatcher
 gconf_standalone
 get
 get($key), PET::Cache
 get500, PET::Dispatcher
 getAll, PET::Request
 getAttr, PET::Dispatcher
 getBASEPATH, PET::Dispatcher
 getCACHE, PET::Dispatcher
 getConf($path), PET::Dispatcher
 getCookie, PET::Dispatcher
 getCreateThumbUrl, PET::Util::Image
 getDBH, PET::Util::MySQL
 getDefaultSubsts, PET::Dispatcher
 getDir(%p), PET::Util::IO
 getGconf, PET::Dispatcher
 getGlobalSubst, PET::APISkeleton
 getLog, PET::Dispatcher
 getOne($key), PET::Filter::PreMultiLang
 getPageKey, PET::Dispatcher
 getRealRemoteHost, PET::Util
 getRealUrl, PET::Dispatcher
 getRowById($what,$id,$dbhname,%p), PET::Util::MySQL
 getSesid, PET::Session
 getSession, PET::Dispatcher
 getSessionId, PET::Dispatcher
 getSessionObject, PET::Dispatcher
 getSqlArray, PET::Util::MySQL
 getSqlRow(%p), PET::Util::MySQL
 Getting PET
 Getting PET(checkout)
 Getting PET(via SVN)
 getUtil, PET::Dispatcher
 getUtilHash, PET::Dispatcher
 Global substitutions
$gw
H
%HANDLERS, PET::Log
 Hello,World-1!
 Hello,World-2!
 Hello,World-3!
 How do filters work?
 hup, PET::RUN::PreForkEFCGI
I
$IFLOG, PET::Util::MySQL
$IFPROF, PET::Dispatcher
 imvalidate, PET::Session
 In details-modules
 In details-operation
 Including a file
 init
 init($disp), PET::ActionMapper
 init(%params), PET::Session
 insertRow($dbhname,$table,%values), PET::Util::MySQL
 insertRow(%p), PET::Util::MySQL
 Installing PET
 Introduction
 invalidate, PET::Session
 invalidateSession, PET::Dispatcher
$IPC, PET::Cache::FastAndFile
 issueQuery, PET::Util::MySQL
K
 killchildren, PET::RUN::PreForkEFCGI
PET provides many freatures for developers.
sub fetchfromdbh
sub fetchSQL($%)
Issue an SQL query via (stored) SQL prepared statement, returns hashrefs of arrayref.
our $FILECACHE
To make the development and learning of PET easier, PET uses a fixed directory structure.
our $FILESIZE
Same as fastmax.
my %Filter
Filters that have short names are stored here.
my %FILTERS
Filters objects are stored here.
sub finish
...actually the second thing to read, becasue this is the first :)
our $Form
sub freeze
Freeze hashref to binary data.
sub freeze($)
Returns freezed “binary” data.
sub fromCache
my $GCONF
The (default) values for global.conf
my $GCONF_LASTMOD
Broken, but this shall hold the last modification time of global.conf
sub gconf_standalone
sub get
sub get
sub get
Returns value of key.
sub get500
sub getAll
sub getAttr
sub getBASEPATH
This is an accessor, that returns the $BASEPATH value.
sub getCACHE
sub getConf
Get a config value from global.conf.
sub getCookie
sub getCreateThumbUrl
sub getDBH
sub getDefaultSubsts
sub getDir
Returns a list of files in a given directory (arrayref of hashrefs).
sub getGconf
sub getGlobalSubst
sub getLog
This is an accessor, that returns the $LOG value, which is a PET::Log
Gets ONE defined key at RUNTIME.
sub getPageKey
Returns the current key for this page (generated from the URL).
sub getRealRemoteHost
Returns the remote host (if empty, then looks for forwarded proxy header)
sub getRealUrl
sub getRowById
Get one hashref by a unique key usage: $UTIL->getRowById(‘users.id’ => 15, ‘main’);
sub getSesid
Return SESID.
sub getSession
Shortcut to return a given Session value (if sessions are enabled).
sub getSessionId
sub getSessionObject
Returns the Session object, if any.
sub getSqlArray
sub getSqlRow
Gets a MySQL row.
PET will later be distributed as a standard CPAN module.
In order to get PET, currenntly you need a subversion client (svn).
svn co svn://ns1.hunreg.com/PET/trunk ./ (Obviously, you must already have SVN installed at this point.)
sub getUtil
sub getUtilHash
Just another example to show another feature.
my $gw
our %HANDLERS
Store filehandlers temporarily.
So how does PET actually look like from the eye of the programmer?
PET has a built-in capability called “filtering”.
While PET can be used as some sort of an “active pages” system, something similar to ASP/PHP/JSP, clearly it is not the recommended usage.
You have to name the filter(s) you want to use in global.conf (see at <Using a filter>).
sub hup
our $IFLOG
my $IFPROF
If profiling is switched in.
Invalidate cookie by deleting it from disk.
Under construction
The main module of PET is PET::Dispatcher.
Using the filter called “general”, the following snippet includes a template.
sub init
sub init
sub init
sub init
Abstract init.
sub init
sub init
sub init
Not used by default, but called from “new” in case you needed it.
sub init
Creates the 16*16 subdirectories for later use.
sub init
sub init
sub init
sub init
Inits class.
sub init
Init is called from new.
sub insertRow
Inserts a row into a MySQL table.
sub insertRow2
This is going to exchange insertRow later.
This is the “official” documentation for PET -- a (web) programming framework and application server for Perl.
sub invalidate
sub invalidateSession
our $IPC
sub issueQuery
sub killchildren
Close