Methods summary
final public
|
#
__construct( )
Static class - cannot be instantiated.
Static class - cannot be instantiated.
|
public static
callback
|
#
loader( string $helper )
Try to load the requested helper.
Try to load the requested helper.
Parameters
- $helper
string helper name
Returns
callback
|
public static
string
|
#
escapeHtml( mixed $s )
Escapes string for use inside HTML template.
Escapes string for use inside HTML template.
Parameters
- $s
mixed UTF-8 encoding or 8-bit
Returns
string
|
public static
string
|
#
escapeXML( string $s )
Escapes string for use inside XML 1.0 template.
Escapes string for use inside XML 1.0 template.
Parameters
- $s
string UTF-8 encoding or 8-bit
Returns
string
|
public static
string
|
#
escapeCss( string $s )
Escapes string for use inside CSS template.
Escapes string for use inside CSS template.
Parameters
- $s
string UTF-8 encoding or 8-bit
Returns
string
|
public static
string
|
#
escapeHtmlCss( string $s )
Escapes string for use inside HTML style attribute.
Escapes string for use inside HTML style attribute.
Parameters
- $s
string UTF-8 encoding or 8-bit
Returns
string
|
public static
string
|
#
escapeJs( mixed $s )
Escapes string for use inside JavaScript template.
Escapes string for use inside JavaScript template.
Parameters
Returns
string
|
public static
string
|
#
escapeHtmlJs( mixed $s )
Escapes string for use inside HTML JavaScript attribute.
Escapes string for use inside HTML JavaScript attribute.
Parameters
Returns
string
|
public static
string
|
#
strip( string $s )
Replaces all repeated white spaces with a single space.
Replaces all repeated white spaces with a single space.
Parameters
- $s
string UTF-8 encoding or 8-bit
Returns
string
|
public static
string
|
#
indent( string $s, integer $level = 1, string $chars = "\t" )
Indents the HTML content from the left.
Indents the HTML content from the left.
Parameters
- $s
string UTF-8 encoding or 8-bit
- $level
integer
- $chars
string
Returns
string
|
public static
string
|
#
date( string|integer|DateTime $time, string $format = "%x" )
Date/time formatting.
Parameters
- $time
string|integer|DateTime
- $format
string
Returns
string
|
public static
string
|
#
bytes( integer $bytes, integer $precision = 2 )
Converts to human readable file size.
Converts to human readable file size.
Parameters
- $bytes
integer
- $precision
integer
Returns
string
|
public static
integer
|
#
length( mixed $var )
Returns array of string length.
Returns array of string length.
Parameters
Returns
integer
|
public static
string
|
#
replace( string $subject, string $search, string $replacement = '' )
Performs a search and replace.
Performs a search and replace.
Parameters
- $subject
string
- $search
string
- $replacement
string
Returns
string
|
public static
string
|
#
replaceRe( string $subject, string $pattern, string $replacement = '' )
Performs a regular expression search and replace.
Performs a regular expression search and replace.
Parameters
- $subject
string
- $pattern
string
- $replacement
string
Returns
string
|
public static
string
|
#
null( mixed $value )
/dev/null.
Parameters
Returns
string
|