Example #1
0
 /**
  * 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 : "");
 }
Example #2
0
 /**
  * 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) : "");
 }