Exemplo n.º 1
0
 /**
  * internal function used by create method for creating custom data
  * @return void
  */
 protected function createCustomData()
 {
     parent::createCustomData();
     $p =& $this->data;
     $data = $this->collectCustomModelData();
     $data['template_id'] = $this->detectParentTemplate();
     DM\TemplatesStructure::create($data);
 }
Exemplo n.º 2
0
 /**
  * internal function used by create method for creating custom data
  * @return void
  */
 protected function createCustomData()
 {
     parent::createCustomData();
     $data = $this->collectCustomModelData();
     $data['template_id'] = $this->detectParentTemplate();
     DM\TemplatesStructure::create($data);
     if ($this->isSolrConfigUpdated()) {
         $tpl = \CB\Objects::getCachedObject($data['template_id']);
         $tpl->setSysDataProperty('solrConfigUpdated', true);
     }
 }