Example #1
0
 /**
  * Returns an instance of class (singleton pattern implementation).
  *
  * @return BOL_LogDao
  */
 public static function getInstance()
 {
     if (self::$classInstance === null) {
         self::$classInstance = new self();
     }
     return self::$classInstance;
 }
Example #2
0
 /**
  * Returns log item for provided type and key.
  *
  * @param string $type
  * @param string $key
  * @return BOL_Log
  */
 public function findByTypeAndKey($type, $key)
 {
     return $this->logDao->findByTypeAndKey($type, $key);
 }