コード例 #1
0
ファイル: Primitive.php プロジェクト: Nycto/Round-Eights
 /**
  * Returns the SQL this atom represents
  *
  * @param \r8\iface\DB\Link $link The database connection this atom
  *      is being created against. This is being passed in for escaping
  *      purposes
  * @return String
  */
 public function toAtomSQL(\r8\iface\DB\Link $link)
 {
     return $link->quote(\r8\reduce($this->value));
 }
コード例 #2
0
ファイル: Decorator.php プロジェクト: Nycto/Round-Eights
 /**
  * Returns a brief string that can be used to describe this connection
  *
  * @return String Returns a URI that loosely identifies this connection
  */
 public function getIdentifier()
 {
     return $this->link->getIdentifier();
 }
コード例 #3
0
ファイル: Star.php プロジェクト: Nycto/Round-Eights
 /**
  * Returns the SQL string for this expression
  *
  * @param \r8\iface\DB\Link $link The database connection this WHERE clause
  *      is being run against. This is being passed in for escaping purposes
  * @return String
  */
 public function toSelectSQL(\r8\iface\DB\Link $link)
 {
     return ($this->table && $this->database ? $link->quoteName($this->database) . "." : "") . ($this->table ? $link->quoteName($this->table) . "." : "") . "*";
 }
コード例 #4
0
ファイル: Table.php プロジェクト: Nycto/Round-Eights
 /**
  * Returns the SQL FROM clause
  *
  * @param \r8\iface\DB\Link $link The database connection this WHERE clause
  *      is being run against. This is being passed in for escaping purposes
  * @return String
  */
 public function toFromSQL(\r8\iface\DB\Link $link)
 {
     return ($this->database ? $link->quoteName($this->database) . "." : "") . $link->quoteName($this->table) . ($this->alias ? " AS " . $link->quoteName($this->alias) : "");
 }
コード例 #5
0
ファイル: Field.php プロジェクト: Nycto/Round-Eights
 /**
  * Returns the SQL this atom represents
  *
  * @param \r8\iface\DB\Link $link The database connection this atom
  *      is being created against. This is being passed in for escaping
  *      purposes
  * @return String
  */
 public function toAtomSQL(\r8\iface\DB\Link $link)
 {
     return ($this->table && $this->database ? $link->quoteName($this->database) . "." : "") . ($this->table ? $link->quoteName($this->table) . "." : "") . $link->quoteName($this->field);
 }