/** * 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; }
/** * 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); }