/** * Discloses all values of the object that should be visible in the view layer. * * @param mixed $key * @access public * @return mixed */ public function disclose($key = null) { $this->_discloseAttr = array('sendMethod'); foreach ($this->_discloseNotEmpty as $attr) { if (!empty($this->{$attr})) { $this->_discloseAttr[] = $attr; } } return parent::disclose($key); }
/** * Validate object * @return bool */ protected function validate() { return count($this->details) > 0 && parent::validate(); }
/** * Adopt the data from $self * @param Domainmodel_Abstract $self * @return self */ protected function reload(Domainmodel_Abstract $self) { $this->_initVars(); $this->extract($self->toArray()); return $this; }