/** * Returns an instance of class (singleton pattern implementation). * * @return OW_TextSearchManager */ public static function getInstance() { if (self::$classInstance === null) { self::$classInstance = new self(); } return self::$classInstance; }
/** * Returns text search manager object. * * @return OW_TextSearchManager */ public static function getTextSearchManager() { return OW_TextSearchManager::getInstance(); }