projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38fac9c
)
DataObjects/Core_template.php
author
Alan Knowles
<alan@roojs.com>
Fri, 4 Dec 2020 03:40:08 +0000
(11:40 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 4 Dec 2020 03:40:08 +0000
(11:40 +0800)
DataObjects/Core_template.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_template.php
b/DataObjects/Core_template.php
index
739dd08
..
471d580
100644
(file)
--- a/
DataObjects/Core_template.php
+++ b/
DataObjects/Core_template.php
@@
-381,5
+381,27
@@
class Pman_Core_DataObjects_Core_template extends DB_DataObject
+ }
+
+ function genGetText($cls)
+ {
+ $clsname = strtolower($cls);
+ $d = DB_DataObject::factory($this->tableName());
+ $d->whereAdd("
+ LOWER(
+ CONCAT(
+ REPLACE(view_name, '.','_'),
+ '_',
+ REPLACE(template,'/','_')
+ )
+ ) = '{$clsname}.php'
+ ");
+ if ( $d->find(true) ){
+ print_R($d);exit;
+ }
+
+
+
+
}
}
\ No newline at end of file