* [misc] Add the function for get program pairs.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user