/**
  * {@inheritDoc}
  */
 public function setPagetype($pageType)
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'setPagetype', array($pageType));
     return parent::setPagetype($pageType);
 }
Example #2
0
 /**
  * @param OrmTemplate $templateOrm
  * @param array       $attributes
  */
 protected function setAttributesToOrm(OrmTemplate $templateOrm, array $attributes)
 {
     if (array_key_exists('name', $attributes)) {
         $templateOrm->setName($attributes['name']);
     }
     if (array_key_exists('pageType', $attributes)) {
         $templateOrm->setPagetype($attributes['pageType']);
     }
     if (array_key_exists('content', $attributes)) {
         $contentString = is_array($attributes['content']) ? \Zend_Json::encode($attributes['content']) : $attributes['content'];
         $templateOrm->setContent($contentString);
     }
 }