TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
Ordering Class Reference
Inheritance diagram for Ordering:
OrderingInterface

Public Member Functions

 __construct (DynamicOperandInterface $operand, $order=\TYPO3\CMS\Extbase\Persistence\QueryInterface::ORDER_ASCENDING)
 
 getOperand ()
 
 getOrder ()
 

Protected Attributes

 $operand
 
 $order
 

Detailed Description

Determines the relative order of two rows in the result set by evaluating operand for each.

Definition at line 21 of file Ordering.php.

Constructor & Destructor Documentation

Constructs the Ordering instance

Parameters
DynamicOperandInterface$operandThe operand; non-null
string$orderOne of ::ORDER_*

Definition at line 39 of file Ordering.php.

References Ordering\$operand, and Ordering\$order.

Member Function Documentation

getOperand ( )

The operand by which to order.

Returns
DynamicOperandInterface the operand; non-null

Implements OrderingInterface.

Definition at line 50 of file Ordering.php.

References Ordering\$operand.

getOrder ( )

Gets the order.

Returns
string One of ::ORDER_*

Implements OrderingInterface.

Definition at line 60 of file Ordering.php.

References Ordering\$order.

Member Data Documentation

$operand
protected

Definition at line 26 of file Ordering.php.

Referenced by Ordering\__construct(), and Ordering\getOperand().

$order
protected

Definition at line 31 of file Ordering.php.

Referenced by Ordering\__construct(), and Ordering\getOrder().