/** * Получает список всех НЕ персональных блогов * * @param bool|array $xReturnOptions true - Возвращать только ID блогов, array - Доп.данные блога * * @return ModuleBlog_EntityBlog[] */ public function GetBlogs($xReturnOptions = null) { $sCacheKey = 'Blog_GetBlogsId'; if (false === ($data = E::ModuleCache()->Get($sCacheKey))) { $data = $this->oMapper->GetBlogsId(); E::ModuleCache()->Set($data, $sCacheKey, array('blog_update', 'blog_new'), 'P1D'); } // * Возвращаем только иденитификаторы if ($xReturnOptions === true) { return $data; } if ($data) { if (is_array($xReturnOptions)) { $aAdditionalData = $xReturnOptions; } else { $aAdditionalData = null; } $data = $this->GetBlogsAdditionalData($data, $aAdditionalData); } return $data; }