Ejemplo n.º 1
0
 /**
  *
  * @param array $options
  */
 public function __construct($options = array())
 {
     StaticConfigurator::setOptions($this, $options);
     if (!isset($options['charset'])) {
         $options['charset'] = 'utf-8';
     }
     parent::__construct($options['charset']);
 }
Ejemplo n.º 2
0
 /**
  *
  * @param array $options
  * @throws \InvalidArgumentException
  * @return \NetCore\Platnoscipl\Button
  */
 public function setOptions(array $options = array())
 {
     if (!is_array($options)) {
         throw new \InvalidArgumentException('Wrong data type given. Expected array or Zend_Config object', 500);
     }
     \NetCore\Configurable\StaticConfigurator::setOptions($this, $options);
     return $this;
 }
Ejemplo n.º 3
0
 public function fromArray($array)
 {
     $this->data = array_merge($this->data, $array);
     \NetCore\Configurable\StaticConfigurator::setOptions($this, $array);
     return $this;
 }
 /**
  * @param array $options
  * @return ConfigurableEventDispatcher
  */
 public function setOptions($options = array())
 {
     $this->options = array_merge($this->options, $options);
     StaticConfigurator::setOptions($this, $options);
     return $this;
 }
Ejemplo n.º 5
0
 /**
  * @param array
  * @return \NetCore\Platnoscipl\Helper
  */
 public function __construct($options = array())
 {
     \NetCore\Configurable\StaticConfigurator::setOptions($this, $options);
     return $this;
 }
Ejemplo n.º 6
0
 public function setOptions($options = array())
 {
     StaticConfigurator::setOptions($this, $options);
     return $this;
 }