* fix for xuanxuan.
This commit is contained in:
@@ -18,3 +18,13 @@ public function uploadFile($fileName, $path, $size, $time, $userID, $users, $cha
|
||||
{
|
||||
return $this->loadExtension('xuanxuan')->uploadFile($fileName, $path, $size, $time, $userID, $users, $chat);
|
||||
}
|
||||
|
||||
public function chatAddAction($chatId = '', $action = '', $actorId = '', $result = '', $comment = '')
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
public function userAddAction($chatId = '', $action = '', $actorId = '', $result = '', $comment = '')
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
public function getFamily($categoryID, $type = '', $root = 0)
|
||||
{
|
||||
if($categoryID == 0 and empty($type)) return array();
|
||||
$category = $this->getById($categoryID);
|
||||
|
||||
if($category)
|
||||
{
|
||||
return $this->dao->select('id')->from(TABLE_MODULE)->where('deleted')->eq('0')->andWhere('path')->like($category->path . '%')->fetchPairs();
|
||||
}
|
||||
if(!$category)
|
||||
{
|
||||
return $this->dao->select('id')->from(TABLE_MODULE)->where('deleted')->eq('0')->andWhere('type')->eq($type)->beginIF($root)->andWhere('root')->eq((int)$root)->fi()->fetchPairs();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user