1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-05-14 23:08:18 +03:00

fix for ORM

This commit is contained in:
Mzhelskiy Maxim 2012-08-05 13:47:09 +04:00
parent b211eb7d74
commit 9df2016501
3 changed files with 27 additions and 0 deletions

View file

@ -900,5 +900,14 @@ class ModuleBlog extends Module {
$this->Cache_Delete("blog_{$iBlogId}");
return $this->oMapperBlog->RecalculateCountTopic($iBlogId);
}
/**
* Алиас для корректной работы ORM
*
* @param array $aBlogId Список ID блогов
* @return array
*/
public function GetBlogItemsByArrayId($aBlogId) {
return $this->GetBlogsByArrayId($aBlogId);
}
}
?>

View file

@ -951,5 +951,14 @@ class ModuleComment extends Module {
$aCollection=$this->oMapper->GetCommentsByFilter($aFilter,$aOrder,$iCount,$iCurrPage,$iPerPage);
return array('collection'=>$this->GetCommentsAdditionalData($aCollection,$aAllowData),'count'=>$iCount);
}
/**
* Алиас для корректной работы ORM
*
* @param array $aCommentId Список ID комментариев
* @return array
*/
public function GetCommentItemsByArrayId($aCommentId) {
return $this->GetCommentsByArrayId($aCommentId);
}
}
?>

View file

@ -1844,5 +1844,14 @@ class ModuleTopic extends Module {
public function RecalculateVote(){
return $this->oMapperTopic->RecalculateVote();
}
/**
* Алиас для корректной работы ORM
*
* @param array $aTopocId Список ID топиков
* @return array
*/
public function GetTopicItemsByArrayId($aTopocId) {
return $this->GetTopicsByArrayId($aTopocId);
}
}
?>