Property | Type | Description | |
---|---|---|---|
$config | object | Opens up public access to config constants and variables and the cache object | |
$loadedObjects | array | Index of objects loaded, used to maintain uniqueness of singletons |
Method | Description | |
---|---|---|
helper ( $helper ) : object | Returns a helper object | |
htmlentities ( string $string, integer $quoteStyle = ENT_COMPAT, string $charset = 'UTF-8', boolean $doubleEncode = false ) : string | Overloads the php function htmlentities and changes the default charset to UTF-8 and the default value for the fourth parameter $doubleEncode to false. Also adds ability to pass a null value to get the default $quoteStyle and $charset (removes need to repeatedly define ENT_COMPAT, 'UTF-8', just to access the $doubleEncode argument) | |
xhtmlentities ( string $string, integer $quoteStyle = ENT_NOQUOTES, string $charset = 'UTF-8', boolean $doubleEncode = false ) : string | Converts special characters in a string to XHTML-valid ASCII encoding the same as htmlentities except this method allows the use of HTML tags within your string. Signature is the same as htmlentities except that the only character sets available (third argument) are UTF-8 (default) and ISO-8859-1 (Latin-1). |
Method | Description | |
---|---|---|
_loadObject ( string $objectType, string $objectName ) : object | Loads an object as a singleton | |
initXhtmlentities ( integer $quoteStyle, string $charset, boolean $doubleEncode ) | Initialize the character maps needed for the xhtmlentities() method and verifies the argument values passed to it are valid. |
public static xhtmlentities ( string $string, integer $quoteStyle = ENT_NOQUOTES, string $charset = 'UTF-8', boolean $doubleEncode = false ) : string | ||
$string | string | |
$quoteStyle | integer | Constants available are ENT_NOQUOTES (default), ENT_QUOTES, ENT_COMPAT |
$charset | string | Only valid options are UTF-8 (default) and ISO-8859-1 (Latin-1) |
$doubleEncode | boolean | Default is false |
return | string |
public static object $config | ||
return | object |
public static array $loadedObjects | ||
return | array |