/** * {@inheritDoc} */ public function toCmsData() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'toCmsData', array()); return parent::toCmsData(); }
/** * @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); } }