예제 #1
0
 /**
  * Returns an instance of class (singleton pattern implementation).
  *
  * @return BOL_CronJobDao
  */
 public static function getInstance()
 {
     if (self::$classInstance === null) {
         self::$classInstance = new self();
     }
     return self::$classInstance;
 }
예제 #2
0
 private function __construct()
 {
     $this->cronJobDao = BOL_CronJobDao::getInstance();
 }