public function __set($Name, $Value)
 {
     if ('IDAlbum' == $Name) {
         $this->IDPhoto = $Value;
     } else {
         parent::__set($Name, $Value);
     }
 }
 public function __set($name, $value)
 {
     if ('Parent' == $name) {
         if ($value instanceof Mappa_Model_Luogo) {
             $this->_parent = $value;
         } else {
             throw new Exception("'value' must be an instance of Mappa_Model_Luogo");
         }
     } else {
         parent::__set($name, $value);
     }
 }
 public function __set($Name, $Value)
 {
     if ('User' == $Name) {
         if ($Value instanceof App_Model_User) {
             $this->_user = $Value;
         } else {
             throw new Exception('Invalid user class');
         }
     } elseif ('Location' == $Name) {
         if ($Value instanceof Mappa_Model_Luogo) {
             $this->_location = $Value;
         } else {
             throw new Exception('Invalid location class');
         }
     } else {
         parent::__set($Name, $Value);
     }
 }
 public function __get($Name)
 {
     switch ($Name) {
         case 'Sender':
             return $this->getSender();
             break;
         case 'Receiver':
             return $this->getReceiver();
             break;
         case 'TheOther':
             if ($this->Sender->IDUser != Zend_Auth::getInstance()->getIdentity()->IDUser) {
                 return $this->Sender;
             } else {
                 return $this->Receiver[0];
             }
             break;
         default:
             return parent::__get($Name);
             break;
     }
 }
 public function __get($Name)
 {
     if ('Name' == $Name) {
         return $this->getName();
     } elseif ('Url' == $Name) {
         return $this->getUrl();
     } else {
         return parent::__get($Name);
     }
 }
 public function __set($Name, $Value)
 {
     if ('Author' == $Name) {
         if ($Value instanceof Zwe_Model_User) {
             $this->_author = $Value;
         } else {
             throw new Exception('$value is not the expected value');
         }
     } else {
         parent::__set($Name, $Value);
     }
 }
 public function __set($Name, $Value)
 {
     if ('Type' == $Name) {
         if ($Value instanceof Zwe_Model_PageType) {
             $this->_pageType = $Value;
         } else {
             throw new Exception('$Value must be an instance of Zwe_Model_PageType');
         }
     } elseif ('Parameters' == $Name) {
         if (is_array($Value)) {
             $this->_parameters = $Value;
         } elseif (is_string($Value)) {
             $this->_parameters = explode('/', $Value);
         } else {
             $this->_parameters = null;
         }
     } else {
         parent::__set($Name, $Value);
     }
 }