Example #1
0
 /**
  * {@inheritDoc}
  */
 public function setColorscheme($colorscheme)
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'setColorscheme', array($colorscheme));
     return parent::setColorscheme($colorscheme);
 }
Example #2
0
 /**
  * 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']);
     }
 }