projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e728b7
)
Changed DataObjects/Core_enum.php
wip_alan_T6032_change_the_release_index_page
author
Alan Knowles
<alan@roojs.com>
Tue, 8 Oct 2019 09:36:26 +0000
(17:36 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 8 Oct 2019 09:36:26 +0000
(17:36 +0800)
DataObjects/Core_enum.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_enum.php
b/DataObjects/Core_enum.php
index
3140cf7
..
f609201
100644
(file)
--- a/
DataObjects/Core_enum.php
+++ b/
DataObjects/Core_enum.php
@@
-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)
{