This commit is contained in:
hufangzhou
2021-10-12 17:36:18 +08:00
parent 5e3863b284
commit 013b6a37cd
2 changed files with 12 additions and 0 deletions
+1
View File
@@ -476,6 +476,7 @@ class projectModel extends model
*/
public function getPairsByProgram($programID = 0, $status = 'all')
{
if(defined('TUTORIAL')) return $this->loadModel('tutorial')->getProjectPairs();
return $this->dao->select('id, name')->from(TABLE_PROJECT)
->where('type')->eq('project')
->andWhere('deleted')->eq(0)
+11
View File
@@ -155,6 +155,17 @@ class tutorialModel extends model
return $project;
}
/**
* Get tutorial project pairs.
*
* @access public
* @return array
*/
public function getProjectPairs()
{
return array(2 => 'Test Project');
}
/**
* Get project stats for tutorial
*