Exemplo n.º 1
0
 protected function save($params = array(), $cid = null, $author = 0)
 {
     $themeId = $params['resource'] = $this->_options['theme_id'];
     $params['parent_id'] = !$params['parent_id'] ? $this->_resource_id : $params['parent_id'];
     $params['access'] = (int) $this->_options['access'];
     $this->_options['commune_id'] = commune::getCommuneIDByThemeID($themeId);
     $messageId = parent::save($params, $cid, $author);
     // если комментарий не удалось сохранить
     if (!$messageId) {
         return;
     }
     return $messageId;
 }