Метод |
Описание |
|
__call ( string $method, $args ) : string |
Creates virtual wrapper methods via $this->_tagBuilder() for the simple wrapper functions including:
$html->css, js, cssInline, jsInline, div, li, p and h1-h4 |
|
__construct ( ) |
Sets the protocol (http/https) |
|
alternator ( ) : boolean |
Returns an alternating Boolean, useful to generate alternating background colors
Eg.:
$colors = array(true => 'gray', false => 'white');
echo ' . |
|
anchor ( array $args ) : string |
Creates an anchor or link container |
|
code ( str $str ) : str |
Wrapper display computer-code samples |
|
footer ( array $args = [] ) : string |
Returns an HTML footer and optional Google Analytics
This method will trigger an error if executed without first calling the header() method
This is meant to be utilized within layouts, not views (but will work in either) |
|
formatProperties ( array $properties ) : string |
Takes an array of key-value pairs and formats them in the syntax of HTML-container properties |
|
getNotifications ( mixed $messages, string $class = 'errormessage' ) : string |
Returns a list of notifications if there are any - similar to the Flash feature of Ruby on Rails |
|
header ( array $args ) : string |
Returns an HTML header and opens the body container
This method will trigger an error if executed more than once without first calling
the footer() method on the prior usage
This is meant to be utilized within layouts, not views (but will work in either) |
|
isEven ( integer $number ) : boolean |
Will return true if the number passed in is even, false if odd. |
|
jsLoad ( mixed $library, mixed $version = null, array $options = [] ) : str |
Load a JavaScript library via Google's AJAX API
http://code.google.com/apis/ajaxlibs/documentation/ |
|
jsTools ( boolean $noJsWrapper = false ) : string |
Establishes a basic set of JavaScript tools, just echo $html->jsTools() before any JavaScript code that
will use the tools. |
|
link ( str $href, str $text = null, array $args = [] ) : str |
Shortcut to access the anchor method |
|
setDocType ( string $docType ) |
Allows modification of the docType |
|