class MoodleQuickForm_areafiles extends HTML_QuickForm_element {
protected $_helpbutton = '';
- protected $_options = array('subdirs'=>0, 'maxbytes'=>0);
+ protected $_options = array('subdirs'=>0, 'maxbytes'=>0, 'maxfiles'=>0);
function MoodleQuickForm_areafiles($elementName=null, $elementLabel=null, $options=null, $attributes=null) {
global $CFG;
$this->_options['subdirs'] = $allow;
}
+ function getMaxfiles() {
+ return $this->_options['maxfiles'];
+ }
+
+ function setMaxfiles($num) {
+ $this->_options['maxfiles'] = $num;
+ }
+
function setHelpButton($_helpbuttonargs, $function='_helpbutton') {
if (!is_array($_helpbuttonargs)) {
$_helpbuttonargs = array($_helpbuttonargs);