mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
add trash module config
This commit is contained in:
parent
ad19805049
commit
af75450611
5 changed files with 53 additions and 0 deletions
|
|
@ -10,6 +10,30 @@
|
|||
*/
|
||||
class trashModel extends trash
|
||||
{
|
||||
private static $config = NULL;
|
||||
|
||||
/**
|
||||
* get Tresh Module Config
|
||||
*
|
||||
* @return trash config
|
||||
*/
|
||||
function getConfig()
|
||||
{
|
||||
if(self::$config === NULL)
|
||||
{
|
||||
$oModuleModel = getModel('module');
|
||||
$config = $oModuleModel->getModuleConfig('trash');
|
||||
if(!$config)
|
||||
{
|
||||
$config = new stdClass();
|
||||
}
|
||||
|
||||
self::$config = $config;
|
||||
}
|
||||
|
||||
return self::$config;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get one trash object
|
||||
* @param int $trashSrl
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue