

Public Member Functions | |
| link ($title, $url, $htmlAttributes=array(), $confirmMessage=false, $escapeTitle=true) | |
| image ($url, $htmlAttributes=array()) | |
| selectTag ($fieldName, $optionElements, $selected=null, $selectAttr=array(), $optionAttr=array(), $showEmpty=false) | |
| escape ($s, $singleQuotes=true) | |
| javascriptTag ($files, $cacheAndMinify=false) | |
| cssTag ($files, $cacheAndMinify=false) | |
| tokenUrl ($url) | |
Definition at line 15 of file html.php.
| cssTag | ( | $ | files, | |
| $ | cacheAndMinify = false | |||
| ) |
return css-tags for all given files. if DEBUG<=0 all files are joined into a single one and are sent compressed to the browser
| array | $files filename of css to include, relative to webroot/css/ |
| bool | $cacheAndMinify if we should join+compress+cache given target |
| escape | ( | $ | s, | |
| $ | singleQuotes = true | |||
| ) |
| image | ( | $ | url, | |
| $ | htmlAttributes = array () | |||
| ) |
builds a complete link to an image. if relative it is assumed the image can be found in "webroot/img/"
| string | $url filename of the image (is automatically expanded if relative link) | |
| array | $htmlAttributes array of attributes of the link, for example "class"=>"dontunderline" |
Definition at line 47 of file html.php.
References Helper::parseAttributes(), and Helper::url().

| javascriptTag | ( | $ | files, | |
| $ | cacheAndMinify = false | |||
| ) |
return javascript-tags for all given files. if DEBUG<=0 all files are joined into a single one and are sent compressed to the browser
| array | $files filename of script to include, relative to webroot/js/ |
| bool | $cacheAndMinify if we should join+compress+cache given target |
| link | ( | $ | title, | |
| $ | url, | |||
| $ | htmlAttributes = array (), |
|||
| $ | confirmMessage = false, |
|||
| $ | escapeTitle = true | |||
| ) |
build a href link
| string | $title what the link should say | |
| string | url where the link should point (is automatically expanded if relative link) | |
| array | $htmlAttributes array of attributes of the link, for example "class"=>"dontunderline" | |
| string | an optional message that asks if you are really shure if you click on the link and aborts navigation if user clicks cancel, ignored if false | |
| boolean | $escapeTitle if we should run htmlspecialchars over the links title |
Definition at line 25 of file html.php.
References escape(), Helper::parseAttributes(), and Helper::url().

| selectTag | ( | $ | fieldName, | |
| $ | optionElements, | |||
| $ | selected = null, |
|||
| $ | selectAttr = array (), |
|||
| $ | optionAttr = array (), |
|||
| $ | showEmpty = false | |||
| ) |
build select/option tags
| string | $fieldName | |
| array | $optionElements | |
| string | $selected | |
| array | $selectAttr array of attributes of the select-tag, for example "class"=>"dontunderline" | |
| array | $optionAttr array of attributes for each option-tag, for example "class"=>"dontunderline" | |
| boolean | $showEmpty if we should display an empty option as the default selection so the user knows (s)he has to select something |
Definition at line 60 of file html.php.
References h(), and Helper::parseAttributes().

| tokenUrl | ( | $ | url | ) |
Definition at line 200 of file html.php.
References is(), and Helper::url().

1.5.8