/** * Provides access to additional magic properties that * can be used in failure messages. * * @param string $property * @return mixed */ public function __get($property) { if ($property === 'allowedSuffixes') { return $this->createEnumerationOfSuffixes(); } return parent::__get($property); }
/** * Simulates properties that are used in message templates. * * @param string $property * @return mixed */ public function __get($property) { switch ($property) { case 'compareName': return $this->getCompareName(); case 'compareLabel': return $this->getCompareLabel(); case 'compareValue': return $this->getCompareValue(); } return parent::__get($property); }
/** * Provides access to additional properties that can be used in * failure messages. * * @param string $property * @return mixed */ public function __get($property) { if ($property === 'listOfAllowedHostnames') { return $this->getAllowedHostnamesAsString(); } if ($property === 'hostname') { return $this->getHostname(); } return parent::__get($property); }
/** * Magic Get * * @param string $property * @return mixed * @throws Zend_Validate_Exception */ public function __get($property) { if (empty($this->_errors)) { return $this->validator->__get($property); } else { return parent::__get($property); } }