PHP 트레잇 Bluz\Db\Query\Traits\Order

Required for: - Select Builder - Update Builder - Delete Builder
저자: Anton Shevchuk
파일 보기 프로젝트 열기: bluzphp/framework

공개 메소드들

메소드 설명
addOrderBy ( string $sort, string $order = 'ASC' ) Adds an ordering to the query results
orderBy ( string $sort, string $order = 'ASC' ) Specifies an ordering for the query results Replaces any previously specified orderings, if any

메소드 상세

addOrderBy() 공개 메소드

Adds an ordering to the query results
public addOrderBy ( string $sort, string $order = 'ASC' )
$sort string Sort expression
$order string Sort direction (ASC or DESC)

orderBy() 공개 메소드

Specifies an ordering for the query results Replaces any previously specified orderings, if any
public orderBy ( string $sort, string $order = 'ASC' )
$sort string Sort expression
$order string Sort direction (ASC or DESC)