mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Update SQLQuery.php
Updated `SQLQuery` class code examples for functions `setOrderBy` and `addOrderBy` to use their new names.
This commit is contained in:
parent
ae0a42fc58
commit
0b24d520f9
@ -494,11 +494,11 @@ class SQLQuery {
|
||||
/**
|
||||
* Set ORDER BY clause either as SQL snippet or in array format.
|
||||
*
|
||||
* @example $sql->orderby("Column");
|
||||
* @example $sql->orderby("Column DESC");
|
||||
* @example $sql->orderby("Column DESC, ColumnTwo ASC");
|
||||
* @example $sql->orderby("Column", "DESC");
|
||||
* @example $sql->orderby(array("Column" => "ASC", "ColumnTwo" => "DESC"));
|
||||
* @example $sql->setOrderBy("Column");
|
||||
* @example $sql->setOrderBy("Column DESC");
|
||||
* @example $sql->setOrderBy("Column DESC, ColumnTwo ASC");
|
||||
* @example $sql->setOrderBy("Column", "DESC");
|
||||
* @example $sql->setOrderBy(array("Column" => "ASC", "ColumnTwo" => "DESC"));
|
||||
*
|
||||
* @param string|array $orderby Clauses to add (escaped SQL statement)
|
||||
* @param string $dir Sort direction, ASC or DESC
|
||||
@ -513,11 +513,11 @@ class SQLQuery {
|
||||
/**
|
||||
* Add ORDER BY clause either as SQL snippet or in array format.
|
||||
*
|
||||
* @example $sql->orderby("Column");
|
||||
* @example $sql->orderby("Column DESC");
|
||||
* @example $sql->orderby("Column DESC, ColumnTwo ASC");
|
||||
* @example $sql->orderby("Column", "DESC");
|
||||
* @example $sql->orderby(array("Column" => "ASC", "ColumnTwo" => "DESC"));
|
||||
* @example $sql->addOrderBy("Column");
|
||||
* @example $sql->addOrderBy("Column DESC");
|
||||
* @example $sql->addOrderBy("Column DESC, ColumnTwo ASC");
|
||||
* @example $sql->addOrderBy("Column", "DESC");
|
||||
* @example $sql->addOrderBy(array("Column" => "ASC", "ColumnTwo" => "DESC"));
|
||||
*
|
||||
* @param string|array $clauses Clauses to add (escaped SQL statements)
|
||||
* @param string $dir Sort direction, ASC or DESC
|
||||
|
Loading…
Reference in New Issue
Block a user