![]() |
PHPDevShell 3.1.3-Stable
PHP OOP RAD Development Framework
|
Functions | |
| PU_BuildGETArray (array $myGET, $includeInGet=null, $excludeFromGet=null) | |
| PU_BuildGETString (array $myGET, $glue= '&') | |
| PU_BuildGET ($includeInGet=null, $excludeFromGet=null, $glue= '&') | |
| PU_BuildAttrString (array $attributes=null, $glue= '') | |
| PU_buildParsedURL ($p) | |
| PU_BuildURL ($target=null, $includeInGet=null, $excludeFromGet=null, $glue= '&') | |
| PU_BuildHREF ($label, $includeInGet=null, $excludeFromGet=null, $target=null, array $attrs=null) | |
| PU_CleanString ($string, $clean_htlm=false) | |
| PU_MakeString ($string, $htmlize=false) | |
| PU_ArraySearch ($needle, $haystack) | |
| PU_ArraySearch | ( | $ | needle, |
| $ | haystack | ||
| ) |
Search for array values inside array and returns key.
| array | $needle | |
| array | $haystack |
Wrapper for $core->__() method. Converts text to use gettext PO system. Does the same as $core->__();
| string | $say_what | The string required to output or convert. |
| string | $domain | Override textdomain that should be looked under for this text string. |
Specifically meant for core translation domain.
| string | $say_what | The string required to output or convert. |
This function echos the returning text.
| text | $text |
This function echos the returning text inside a domain.
| text | $text |
| PU_BuildAttrString | ( | array $ | attributes = null, |
| $ | glue = '' |
||
| ) |
Build a xml-style attributes string based on an array
| $attributes | array, the attribute array to compile |
| $glue | string, a piece of string to insert between the values |
| PU_BuildGET | ( | $ | includeInGet = null, |
| $ | excludeFromGet = null, |
||
| $ | glue = '&' |
||
| ) |
Build GET part of a url
| $includeInGet | (optional) array of pairs: parameters to add as GET in the url |
| $excludeFromGet | (optional) array of strings: parameters to remove from GET in the url |
| PU_BuildGETArray | ( | array $ | myGET, |
| $ | includeInGet = null, |
||
| $ | excludeFromGet = null |
||
| ) |
Build array from get url.
TODO: it's probably faster to use PHP build-in function (array_merge...)
| array | $myGET | |
| array | $includeInGet | |
| array | $excludeFromGet |
| PU_BuildGETString | ( | array $ | myGET, |
| $ | glue = '&' |
||
| ) |
Creates a (string) url to be used with GET, including encoding
| array | $myGET | |
| string | $glue |
| PU_BuildHREF | ( | $ | label, |
| $ | includeInGet = null, |
||
| $ | excludeFromGet = null, |
||
| $ | target = null, |
||
| array $ | attrs = null |
||
| ) |
Build a html link (A+HREF html tag) with label and url and GET parameters
| $label | string: the text of the link |
| $includeInGet | (optional) array of pairs: parameters to add as GET in the url |
| $excludeFromGet | (optional) array of strings: parameters to remove from GET in the url |
| $target | (optional) string: the target script url (current script if missing) |
| PU_buildParsedURL | ( | $ | p | ) |
Builds a parsed url.
| array | $p |
| PU_BuildURL | ( | $ | target = null, |
| $ | includeInGet = null, |
||
| $ | excludeFromGet = null, |
||
| $ | glue = '&' |
||
| ) |
Build a url with GET parameters
| string | array | $target | (optional) string: the target script url (current script if missing) |
| array | $includeInGet | (optional) array of pairs: parameters to add as GET in the url |
| array | $excludeFromGet | (optional) array of strings: parameters to remove from GET in the url |
| PU_CleanString | ( | $ | string, |
| $ | clean_htlm = false |
||
| ) |
Clean a string from possibly harmful chars
These are removed: single and double quotes, backslashes, optionnaly html tags (everything between < and >)
A cleaned string should be safe to include in an html output
| $string | the string to clean |
| $clean_htlm | if true, HTML tags are deleted too |
| PU_MakeString | ( | $ | string, |
| $ | htmlize = false |
||
| ) |
Convert a string to UTF8 (default) or to HTML
| $string | the string to convert |
| $htmlize | if true the string is converted to HTML, otherwise to UTF8 |