* code for task #2672.

This commit is contained in:
wangyidong
2016-10-26 14:28:55 +08:00
parent 000addf392
commit 0b4e00d77d
10 changed files with 347 additions and 6 deletions
+14
View File
@@ -508,6 +508,20 @@ class treeModel extends model
return $fullTrees;
}
/**
* Get tree structure.
*
* @param int $rootID
* @param string $type
* @access public
* @return array
*/
public function getTreeStructure($rootID, $type)
{
$stmt = $this->dbh->query($this->buildMenuQuery($rootID, $type, $startModule = 0));
return $this->getDataStructure($stmt, $type);
}
/**
* Get project story tree menu.
*