* [misc] Add the function for get program pairs.

This commit is contained in:
xieqiyu
2024-09-04 17:31:41 +08:00
committed by 王于听
parent 8c28fa2af2
commit ad8bd186da
2 changed files with 14 additions and 0 deletions
+2
View File
@@ -65,6 +65,8 @@ class programModel extends model
*/
public function getPairs($isQueryAll = false, $orderBy = 'id_desc'): array
{
if(common::isTutorialMode()) return $this->loadModel('tutorial')->getProgramPairs();
return $this->dao->select('id, name')->from(TABLE_PROGRAM)
->where('type')->eq('program')
->andWhere('deleted')->eq(0)
+12
View File
@@ -1724,6 +1724,18 @@ class tutorialModel extends model
return array(1 => $this->getRelease());
}
/**
* 获取新手模式项目集键值对。
* Get program pairs.
*
* @access public
* @return array
*/
public function getProgramPairs(): array
{
return array(1 => 'Test program');
}
/**
* 获取新手模式项目集列表。
* Get programs.