Ejemplo n.º 1
0
 /**
  * {@inheritDoc}
  */
 public function setContent($content)
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'setContent', array($content));
     return parent::setContent($content);
 }
Ejemplo n.º 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);
     }
 }