‪TYPO3CMS  ‪main
TYPO3\CMS\Extbase\Persistence\Generic\Qom\Ordering Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Persistence\Generic\Qom\Ordering:
TYPO3\CMS\Extbase\Persistence\Generic\Qom\OrderingInterface

Public Member Functions

 __construct (DynamicOperandInterface $operand, $order=QueryInterface::ORDER_ASCENDING)
 
DynamicOperandInterface getOperand ()
 
string getOrder ()
 

Protected Attributes

DynamicOperandInterface $operand
 
string $order
 

Detailed Description

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

only to be used within Extbase, not part of TYPO3 Core API.

Definition at line 28 of file Ordering.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Extbase\Persistence\Generic\Qom\Ordering::__construct ( DynamicOperandInterface  $operand,
  $order = QueryInterface::ORDER_ASCENDING 
)

Constructs the Ordering instance

Parameters
DynamicOperandInterface$operand‪The operand; non-null
string$order‪One of \TYPO3\CMS\Extbase\Persistence\QueryInterface::ORDER_*

Definition at line 44 of file Ordering.php.

References TYPO3\CMS\Extbase\Persistence\Generic\Qom\Ordering\$operand, and TYPO3\CMS\Extbase\Persistence\Generic\Qom\Ordering\$order.

Member Function Documentation

◆ getOperand()

DynamicOperandInterface TYPO3\CMS\Extbase\Persistence\Generic\Qom\Ordering::getOperand ( )

The operand by which to order.

Returns
DynamicOperandInterface the operand; non-null

Implements TYPO3\CMS\Extbase\Persistence\Generic\Qom\OrderingInterface.

Definition at line 55 of file Ordering.php.

References TYPO3\CMS\Extbase\Persistence\Generic\Qom\Ordering\$operand.

◆ getOrder()

string TYPO3\CMS\Extbase\Persistence\Generic\Qom\Ordering::getOrder ( )

Gets the order.

Returns
‪string One of \TYPO3\CMS\Extbase\Persistence\QueryInterface::ORDER_*

Implements TYPO3\CMS\Extbase\Persistence\Generic\Qom\OrderingInterface.

Definition at line 65 of file Ordering.php.

References TYPO3\CMS\Extbase\Persistence\Generic\Qom\Ordering\$order.

Member Data Documentation

◆ $operand

DynamicOperandInterface TYPO3\CMS\Extbase\Persistence\Generic\Qom\Ordering::$operand
protected

◆ $order

string TYPO3\CMS\Extbase\Persistence\Generic\Qom\Ordering::$order
protected

One of \TYPO3\CMS\Extbase\Persistence\QueryInterface::ORDER_*

Definition at line 36 of file Ordering.php.

Referenced by TYPO3\CMS\Extbase\Persistence\Generic\Qom\Ordering\__construct(), and TYPO3\CMS\Extbase\Persistence\Generic\Qom\Ordering\getOrder().