Example #1
0
 /**
  * Добавляет тип контента
  *
  * @param ModuleTopic_EntityContentType $oType    Объект типа контента
  *
  * @return ModuleTopic_EntityContentType|bool
  */
 public function AddContentType($oType)
 {
     if ($nId = $this->oMapper->AddContentType($oType)) {
         $oType->setContentId($nId);
         //чистим зависимые кеши
         E::ModuleCache()->CleanByTags(array('content_new', 'content_update'));
         return $oType;
     }
     return false;
 }