void addmsg(
integer
$level, string
$text, [mixed
$log = false], [mixed
$type = PAPAYA_LOGTYPE_SYSTEM]
)
|
|
Adds a message in the message object.
All messages will be displayed in programm run
Parameters:
|
integer |
$level: |
message priority |
|
string |
$text: |
message |
mixed &createPluginObject(
string
$filename, mixed
$classname, string
$guid, mixed
&$parent, [mixed
$data = NULL], string
$class
)
|
|
Create plugin object
Parameters:
|
string |
$filename: |
plugin filename |
|
string |
$class: |
plugin classname |
|
string |
$guid: |
Unique Identifier of the object class |
API Tags:
| Return: | object or null |
| Access: | public |
void debug(
mixed
&$var
)
|
|
Show the debug of the variable &$var
Parameters:
|
mixed |
$var: |
auszugebende Variable |
string encodeQueryString(
mixed
$params, [string
$paramname = NULL], [integer
$maxdepth = 5], array
&$params
)
|
|
Encode query string
Parameters:
|
array |
&$params: |
array of params |
|
string |
$paramname: |
optional param name |
|
integer |
$maxdepth: |
optional default 5 |
API Tags:
string escapeForFilename(
string
$str, [string
$default = 'index']
)
|
|
Escape chars in a string to use it in a filename
Parameters:
|
string |
$str: |
|
|
string |
$default: |
returned if str is empty |
API Tags:
string getAbsoluteURL(
string
$url, [string
$text = ''], [boolean
$sid = true]
)
|
|
Return absolute URL
Parameters:
|
string |
$url: |
|
|
string |
$text: |
optional, default value '' |
|
boolean |
$sid: |
optional, default value true |
API Tags:
| Return: | URL |
| Access: | public |
string getBaseLink(
[integer
$page_id = 0]
)
|
|
Get base link
Parameters:
API Tags:
string getBasePath(
[boolean
$with_document_root = false]
)
|
|
get base path to current script
Parameters:
|
boolean |
$with_document_root: |
optional, default value false |
API Tags:
string getLink(
string
$filename, integer
$page_id, [mixed
$params = NULL], [mixed
$paramname = NULL]
)
|
|
Get link
Parameters:
|
string |
$filename: |
|
|
integer |
$page_id: |
|
|
mixed |
$params: |
optional, default value NULL |
|
mixed |
$paramname: |
optional, default value NULL |
API Tags:
void getSessionValue(
mixed
$name
)
|
|
string getWebLink(
[mixed
$pid = NULL], [string
$mode = 'page'], [mixed
$params = NULL], [mixed
$paramname = NULL], [mixed
$text = ''], boolean
$sid
)
|
|
Get web link
Parameters:
|
mixed |
$pid: |
optional, default value NULL |
|
string |
$mode: |
optional, default value 'page' |
|
mixed |
$params: |
optional, default value NULL |
|
mixed |
$paramname: |
optional, default value NULL |
|
boolean |
$sid: |
optional, default value TRUE |
API Tags:
| Return: | Weblink |
| Access: | public |
mixed getWebMediaLink(
mixed
$mid, [string
$mode = 'media'], [mixed
$text = '']
)
|
|
Get web media link
Parameters:
|
mixed |
$mid: |
|
|
string |
$mode: |
optional, default value 'media' |
API Tags:
boolean includePluginFile(
string
$filename, string
$classname
)
|
|
Include plugin file
Parameters:
|
string |
$filename: |
|
|
string |
$classname: |
|
API Tags:
void initializeParams(
[mixed
$sessionparamname = NULL]
)
|
|
Parameter initialisation
All global parameters for the object will be read out of the global namespace and put in $this->params. The current will script filename is stored in the $this->baselink. If here is a parameter $sessionparamname or a property $this->sessionparamname, the value will be registered in the session object.
Parameters:
|
mixed |
$sessionparamname: |
optional, default value NULL |
API Tags:
void initializeSessionParam(
string
$name, [array
$resetparams = NULL]
)
|
|
Initialisation of session-parameter
If the parameter this->params[name] is set all variables within $resetparams get reset. Otherwise if $this->sessionparams[$name] is set the parameter will replace this->params[$name]. If there is no parameter set with name $name, this->params set to NULL
Parameters:
|
string |
$name: |
name of the parameter |
|
array |
$resetparams: |
array parameter |
Neu definiert in folgenden Ableitungen:
void logMsg(
integer
$level, integer
$type, string
$short, [string
$long = '']
)
|
|
Log events
Parameters:
|
integer |
$level: |
message priority |
|
integer |
$type: |
message typ (Gruppe) |
|
string |
$short: |
message short (für Liste) |
|
string |
$long: |
message detailed |
Neu definiert in folgenden Ableitungen:
Parse request URI to filter data out of it
void setSessionValue(
mixed
$name, mixed
$value
)
|
|
void stripslashes(
mixed
$var
)
|
|
string _gt(
string
$phrase, [mixed
$module = NULL]
)
|
|
Phrasetranslator - Fetch translation for all phrase
Parameters:
|
string |
$phrase: |
Phrase |
|
mixed |
$module: |
Modul |
Neu definiert in folgenden Ableitungen:
string _gtf(
string
$phrase, array
$vals, [mixed
$module = NULL]
)
|
|
Phrasetranslator - Fetch translation of one phrase and insert variable
Parameters:
|
string |
$phrase: |
Phrase |
|
array |
$vals: |
Parameter |
|
mixed |
$module: |
Modul |
string _gtfile(
string
$filename
)
|
|
Phrases - Locate files
Parameters:
|
string |
$filename: |
filename |
API Tags: