Пример #1
0
 /**
  * Return an instance of a builder
  * 
  * @return AnDomainQueryBuilder
  */
 public static function getInstance()
 {
     if (!self::$_instance) {
         self::$_instance = new AnDomainQueryBuilder(new KConfig());
     }
     return self::$_instance;
 }
Пример #2
0
 /**
  * Return an instance of a builder.
  * 
  * @return AnDomainQueryBuilder
  */
 public static function getInstance()
 {
     if (!self::$_instance) {
         self::$_instance = new self(new KConfig());
     }
     return self::$_instance;
 }
Пример #3
0
 /**
  * Builds the query and return the string.
  *
  * @return string
  */
 public function build()
 {
     return AnDomainQueryBuilder::getInstance()->build($this);
 }