update : 2015.11.03
php.shukuma.com

검색:
 
 
Orders results

TokyoTyrantQuery::setOrder

(PECL tokyo_tyrant >= 0.1.0)

TokyoTyrantQuery::setOrderOrders results

설명

public mixed TokyoTyrantQuery::setOrder ( string $name , int $type )

Sets the order of a query

인수

name

The column name to apply the ordering on.

type

The type can be one of the following constants:

  • TokyoTyrant::RDBQO_STRASC - String ascending
  • TokyoTyrant::RDBQO_STRDESC - String descending
  • TokyoTyrant::RDBQO_NUMASC - Numberic ascending
  • TokyoTyrant::RDBQO_NUMDESC - String descending

반환값

This method returns the current object.