示例#1
0
 /**
  * Обновляет топик
  *
  * @param ModuleTopic_EntityContentType $oType    Объект типа контента
  *
  * @return bool
  */
 public function UpdateContentType($oType)
 {
     if ($this->oMapper->UpdateContentType($oType)) {
         //чистим зависимые кеши
         E::ModuleCache()->CleanByTags(array('content_new', 'content_update', 'topic_update'));
         E::ModuleCache()->Delete("content_type_{$oType->getContentId()}");
         return true;
     }
     return false;
 }