Changed DataObjects/Core_enum.php wip_alan_T6032_change_the_release_index_page
authorAlan Knowles <alan@roojs.com>
Tue, 8 Oct 2019 09:36:26 +0000 (17:36 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 8 Oct 2019 09:36:26 +0000 (17:36 +0800)
DataObjects/Core_enum.php

index 3140cf7..f609201 100644 (file)
@@ -312,6 +312,15 @@ class Pman_Core_DataObjects_Core_enum extends DB_DataObject
         return $x->fetchAll($fetchArg1, $fetchArg2, $fetchArg3);
     }
 
+    function fetchAllByTypeOrderDisplay($etype, $fetchArg1=false, $fetchArg2=false, $fetchArg3=false)
+    {
+        $x = DB_DataObject::factory('core_enum');
+        $x->etype = $etype;
+        $x->active = 1;
+        $x->orderBy('display_name ASC');
+        return $x->fetchAll($fetchArg1, $fetchArg2, $fetchArg3);
+    }
+    
     function lookupObject($etype,$name, $create= false)
     {