public function setValue($value) { if (!is_array($value)) { throw new Exception("Only array-type values allowed!"); } parent::setValue($value); }
public function __construct($name, $class, $required = false) { parent::__construct($name, $required, new $class(), array()); if (!$this->getValue() instanceof Entities_Interface) { throw new Entities_Exception("Invalid reference field value!"); } }
public function __construct($name, $required = false, $validators = array(), $value = NULL) { parent::__construct($name, $required, $value, $validators); }