/** * update objects custom data * @return boolean */ protected function updateCustomData() { parent::updateCustomData(); /* saving template data to templates and templates_structure tables */ $p =& $this->data; $data = $this->collectCustomModelData(); $data['template_id'] = $this->detectParentTemplate(); DM\TemplatesStructure::update($data); }
/** * update objects custom data * @return boolean */ protected function updateCustomData() { parent::updateCustomData(); /* saving template data to templates and templates_structure tables */ $p =& $this->data; $data = $this->collectCustomModelData(); $data['id'] = $this->id; $data['template_id'] = $this->detectParentTemplate(); DM\TemplatesStructure::update($data); if ($this->isSolrConfigUpdated()) { $tpl = \CB\Objects::getCachedObject($data['template_id']); $tpl->setSysDataProperty('solrConfigUpdated', true); } }