Exemplo n.º 1
0
 public function __construct($key, $label = '', $tooltip = '', $representation = null, $defaultValue = '', $reloadPageOnChange = true, $reloadPropertiesOnChange = false, $collapsed = false)
 {
     parent::__construct($key, $label, $tooltip, $representation, $defaultValue, $reloadPageOnChange, $reloadPropertiesOnChange);
     $this->properties = array();
     $this->collapsed = $collapsed;
     //        $this->propertiesValue = (isset($_GET[$this->key])) ? $_GET[$this->key] : array();
 }
Exemplo n.º 2
0
 public function __construct($key, $label = '', $tooltip = '', $representation = null, $defaultValue = '', $reloadPageOnChange = true, $reloadPropertiesOnChange = false, $options = null)
 {
     parent::__construct($key, $label, $tooltip, $representation);
     $this->defaultValue = $defaultValue;
     $this->reloadPageOnChange = $reloadPageOnChange;
     $this->reloadPropertiesOnChange = $reloadPropertiesOnChange;
     $this->options = $options;
     $this->rawValue = isset($_GET[$this->key]) ? $_GET[$this->key] : $this->defaultValue;
     if (!is_null(Data::getValueFromKey($this->key))) {
         $this->rawValue = Data::getValueFromKey($this->key);
     }
     $this->setValue($this->rawValue);
 }