예제 #1
0
 public function __construct(&$params)
 {
     $params->size = 0;
     $params->message = '';
     $params->error = false;
     $this->params = $params;
     require_once __DIR__ . '/helpers/helpers.php';
     $this->helpers = plgSystemCacheCleanerHelpers::getInstance($params);
 }
예제 #2
0
 public static function getInstance($params = 0)
 {
     if (!self::$instance) {
         self::$instance = new static();
     }
     if ($params) {
         self::$params = $params;
     }
     return self::$instance;
 }
예제 #3
0
 public function __construct()
 {
     require_once __DIR__ . '/helpers.php';
     $this->helpers = plgSystemCacheCleanerHelpers::getInstance();
     $this->params = $this->helpers->getParams();
 }