- Moved property $htmlParameters from HTMLWidget to DropdownWidget

- Moved all the UDF related code from UDFWidget to UDFLib
- UDFWidget is now using UDFLib
This commit is contained in:
Paolo
2017-08-17 16:33:45 +02:00
parent 35a4861abf
commit 1a2fce8d1c
4 changed files with 457 additions and 441 deletions
@@ -21,6 +21,9 @@ class DropdownWidget extends HTMLWidget
const SIZE = 'size'; // size of the dropdown
const MULTIPLE = 'multiple'; // multiple attribute
// Alias of $this->_args[HTMLWidget::HTML_ARG_NAME] for a better code readability
protected $htmlParameters;
/**
*
*/
@@ -34,6 +37,8 @@ class DropdownWidget extends HTMLWidget
$this->_args[DropdownWidget::SELECTED_ELEMENT] = DropdownWidget::HTML_DEFAULT_VALUE;
}
$this->htmlParameters =& $this->_args[HTMLWidget::HTML_ARG_NAME]; // Reference for a better code readability
// By default is not a multiple dropdown
unset($this->htmlParameters[DropdownWidget::MULTIPLE]);
}