add trash module config

This commit is contained in:
BJRambo 2016-05-12 17:23:34 +09:00
parent ad19805049
commit af75450611
5 changed files with 53 additions and 0 deletions

View file

@ -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