/** * Returns an instance of class (singleton pattern implementation). * * @return BOL_Search */ public static function getInstance() { if (self::$classInstance === null) { self::$classInstance = new self(); } return self::$classInstance; }
public function deleteExpireSearchResult() { $list = $this->searchDao->findExpireSearchId(); if (!empty($list)) { $this->searchResultDao->deleteSearchResultItems($list); $this->searchDao->deleteByIdList($list); } }