- Remove unused method and unit test of doc::getLibIdListByProject.

This commit is contained in:
tianshujie
2023-12-08 15:41:04 +08:00
parent bef39d25f8
commit b32ecfe8a5
2 changed files with 0 additions and 48 deletions
-22
View File
@@ -1838,28 +1838,6 @@ class docModel extends model
return $node;
}
/**
* Get project-related document library IDs.
*
* @param int $projectID
* @access public
* @return array
*/
public function getLibIdListByProject($projectID = 0)
{
$products = $this->loadModel('product')->getProductIDByProject($projectID, false);
$executions = $this->loadModel('execution')->getPairs($projectID, 'all', 'noclosed,leaf');
$executionLibs = array();
$productLibs = array();
if($executions) $executionLibs = $this->dao->select('id')->from(TABLE_DOCLIB)->where('execution')->in(array_keys($executions))->fetchPairs();
if($products) $productLibs = $this->dao->select('id')->from(TABLE_DOCLIB)->where('product')->in($products)->fetchPairs();
$customLibs = $this->dao->select('id')->from(TABLE_DOCLIB)->where('type')->eq('custom')->fetchPairs();
$libIdList = array_merge($customLibs, $executionLibs, $productLibs);
return $libIdList;
}
/**
* Get statistic information.
*