* [misc] add $type param to doc method getModulesOfLibs.
This commit is contained in:
@@ -2728,14 +2728,15 @@ class docModel extends model
|
||||
* Get modules from libs.
|
||||
*
|
||||
* @param array $libs Lib id list.
|
||||
* @param string $type doc|api
|
||||
* @access public
|
||||
* @return array
|
||||
*/
|
||||
public function getModulesOfLibs(array $libs)
|
||||
public function getModulesOfLibs(array $libs, $type = 'doc')
|
||||
{
|
||||
return $this->dao->select('*')->from(TABLE_MODULE)
|
||||
->where('root')->in($libs)
|
||||
->andWhere('type')->eq('doc')
|
||||
->andWhere('type')->eq($type)
|
||||
->andWhere('deleted')->eq(0)
|
||||
->orderBy('grade desc, `order`')
|
||||
->fetchAll('id');
|
||||
|
||||
Reference in New Issue
Block a user