/** * Constructor * * @param string|array|Zend_Config $options OPTIONAL */ public function __construct($options = null) { parent::__construct($options); if (is_array($options) && array_key_exists('field', $options)) { $this->setField($options['field']); } if (is_array($options) && array_key_exists('value', $options)) { $this->setValue($options['value']); } if (is_array($options) && array_key_exists('emptyStrings', $options)) { $this->setEmptyStrings($options['emptyStrings']); } }
/** * Custom constructor. * Needed because parent Zend class has the bug - when default value NULL is passed to the constructor, * then it throws the exception. * * @param array $options */ public function __construct($options = []) { parent::__construct($options); }
/** * Custom constructor. * Needed because parent Zend class has the bug - when default value NULL is passed to the constructor, * then it throws the exception. * * @param array $options */ public function __construct($options = array()) { parent::__construct($options); }