mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-23 02:45:33 +08:00
42 lines
1.0 KiB
PHP
42 lines
1.0 KiB
PHP
<?php
|
||
/**
|
||
* Copyright © ShopeX (http://www.shopex.cn). All rights reserved.
|
||
* See LICENSE file for license details.
|
||
*/
|
||
|
||
|
||
class ome_messenger_tmpl{
|
||
|
||
/**
|
||
* last_modified
|
||
* @param mixed $tplname tplname
|
||
* @return mixed 返回值
|
||
*/
|
||
public function last_modified($tplname)
|
||
{
|
||
$systmpl = app::get('ome')->model('print_tmpl_diy');
|
||
$aRet = $systmpl->getList('*',array('active'=>'true','app'=>'ome','tmpl_name'=>$tplname));
|
||
if($aRet){
|
||
return $aRet[0]['edittime'];
|
||
}
|
||
return time();
|
||
}
|
||
|
||
/**
|
||
* 获取_file_contents
|
||
* @param mixed $tplname tplname
|
||
* @return mixed 返回结果
|
||
*/
|
||
public function get_file_contents($tplname)
|
||
{
|
||
$systmpl = app::get('ome')->model('print_tmpl_diy');
|
||
$aRet = $systmpl->getList('*',array('active'=>'true','app'=>'ome','tmpl_name'=>$tplname));
|
||
if($aRet){
|
||
return $aRet[0]['content'];
|
||
}
|
||
return null;
|
||
|
||
}
|
||
|
||
}
|
||
?>
|