Ejemplo n.º 1
0
 public static function getInstance()
 {
     if (self::$classInstance === null) {
         self::$classInstance = new self();
     }
     return self::$classInstance;
 }
Ejemplo n.º 2
0
 private function __construct()
 {
     $this->plugin = OW::getPluginManager()->getPlugin('watchdog');
     $this->watchdogWhiteListDao = WATCHDOG_BOL_WatchdogWhiteListDao::getInstance();
     $this->watchdogBlackListDao = WATCHDOG_BOL_WatchdogBlackListDao::getInstance();
     $this->watchdogEmailDao = WATCHDOG_BOL_WatchdogEmailDao::getInstance();
 }