Пример #1
0
 /**
  * Returns an instance of class (singleton pattern implementation).
  *
  * @return USEARCH_BOL_SearchDao
  */
 public static function getInstance()
 {
     if (self::$classInstance === null) {
         self::$classInstance = new self();
     }
     return self::$classInstance;
 }
Пример #2
0
 /**
  * Class constructor
  */
 private function __construct()
 {
     $this->listingDao = LOOVLISTING_BOL_ListingDao::getInstance();
 }