timeline: if a section is set to hidden and the user is not capable of editing a...
[moodle-blog-course-format.git] / lib / form / hidden.php
blobab677d980ce1534d0ebc04a8e499f614265e8bc5
1 <?php
2 require_once('HTML/QuickForm/hidden.php');
4 /**
5 * HTML class for a hidden type element
7 * @author Jamie Pratt
8 * @access public
9 */
10 class MoodleQuickForm_hidden extends HTML_QuickForm_hidden{
11 /**
12 * html for help button, if empty then no help
14 * @var string
16 var $_helpbutton='';
18 function MoodleQuickForm_hidden($elementName=null, $value='', $attributes=null) {
19 parent::HTML_QuickForm_hidden($elementName, $value, $attributes);
22 /**
23 * set html for help button
25 * @access public
26 * @param array $help array of arguments to make a help button
27 * @param string $function function name to call to get html
29 function setHelpButton($helpbuttonargs, $function='helpbutton'){
32 /**
33 * get html for help button
35 * @access public
36 * @return string html for help button
38 function getHelpButton(){
39 return '';