コード例 #1
0
ファイル: Ordered.php プロジェクト: Nycto/Round-Eights
 /**
  * Returns the SQL string for this expression
  *
  * @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 toOrderedSQL(\r8\iface\DB\Link $link)
 {
     return $this->atom->toAtomSQL($link) . ($this->order ? " " . $this->order : "");
 }
コード例 #2
0
ファイル: Aliased.php プロジェクト: Nycto/Round-Eights
 /**
  * Returns the SQL string for this expression
  *
  * @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 toSelectSQL(\r8\iface\DB\Link $link)
 {
     return $this->atom->toAtomSQL($link) . ($this->alias ? " AS " . $link->quoteName($this->alias) : "");
 }