| 1 | <?php |
||
| 10 | class FormHelper |
||
| 11 | { |
||
| 12 | |||
| 13 | /** |
||
| 14 | * Genereates a cancel button that links to the specified URL |
||
| 15 | * @param mixed $url the button URL |
||
| 16 | * @return string the HTML for the button |
||
| 17 | */ |
||
| 18 | public static function cancelButton($url) |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Generates a nicely formatted help block, useful to explain what a form or |
||
| 29 | * a page does. Nothing is rendered if the "showHelpBlocks" setting is set |
||
| 30 | * to false. |
||
| 31 | * @param string $content the block content |
||
| 32 | * @return string the HTML for the help block |
||
| 33 | */ |
||
| 34 | public static function helpBlock($content) |
||
| 46 | |||
| 47 | } |