TYPO3 CMS  TYPO3_6-2
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 Tx_Extbase_Persistence_QOM_Ordering

Public Member Functions

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

Protected Attributes

 $operand
 
 $order
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Determines the relative order of two rows in the result set by evaluating operand for each.

Definition at line 20 of file Ordering.php.

Constructor & Destructor Documentation

◆ __construct()

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

Constructs the Ordering instance

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

Definition at line 38 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()

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 48 of file Ordering.php.

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

◆ getOrder()

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

Gets the order.

Returns
string One of ::ORDER_*

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

Definition at line 57 of file Ordering.php.

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

Member Data Documentation

◆ $operand

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

◆ $order

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