예제 #1
0
 /**
  * {@inheritDoc}
  */
 public function setVersion($version)
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'setVersion', array($version));
     return parent::setVersion($version);
 }
예제 #2
0
파일: Doctrine.php 프로젝트: rukzuk/rukzuk
 /**
  * Setzt Attribute in einer Website neu
  *
  * @param array $attributes
  * @param Website $orm
  */
 protected function setAttributesToWebsite($attributes, Website $orm)
 {
     if (isset($attributes['name'])) {
         $orm->setName($attributes['name']);
     }
     if (isset($attributes['navigation'])) {
         $orm->setNavigation($attributes['navigation']);
     }
     if (isset($attributes['description'])) {
         $orm->setDescription($attributes['description']);
     }
     if (isset($attributes['publishingenabled'])) {
         $orm->setPublishingEnabled((bool) $attributes['publishingenabled']);
     }
     if (isset($attributes['publish'])) {
         $orm->setPublish($attributes['publish']);
     }
     if (isset($attributes['version']) && is_int($attributes['version'])) {
         $orm->setVersion($attributes['version']);
     }
     if (isset($attributes['colorscheme'])) {
         $orm->setColorscheme($attributes['colorscheme']);
     }
     if (isset($attributes['resolutions'])) {
         $orm->setResolutions($attributes['resolutions']);
     }
     if (isset($attributes['home'])) {
         $orm->setHome($attributes['home']);
     }
     if (isset($attributes['usedsetid'])) {
         $orm->setUsedSetId($attributes['usedsetid']);
     }
 }