BlueSpice MediaWiki master
 All Classes Namespaces Files Functions Variables Groups Pages
BlueSpice\Data\Sort Class Reference
Collaboration diagram for BlueSpice\Data\Sort:

Public Member Functions

 __construct ($property, $direction=self::ASCENDING)
 
 getProperty ()
 
 getDirection ()
 
 __toString ()
 

Static Public Member Functions

static newCollectionFromArray ($sorts)
 

Public Attributes

const ASCENDING = 'ASC'
 
const DESCENDING = 'DESC'
 

Protected Attributes

 $property = ''
 
 $direction = ''
 

Constructor & Destructor Documentation

BlueSpice\Data\Sort::__construct (   $property,
  $direction = self::ASCENDING 
)
Parameters
string$property
string$direction
Exceptions
UnexpectedValueException

Member Function Documentation

BlueSpice\Data\Sort::__toString ( )
Returns
string
BlueSpice\Data\Sort::getDirection ( )
Returns
string One of Sort::ASCENDING or Sort::DESCENDING
BlueSpice\Data\Sort::getProperty ( )
Returns
string
static BlueSpice\Data\Sort::newCollectionFromArray (   $sorts)
static
Parameters
stdClass[]|array[]$sorts
Returns
Sort[]

The documentation for this class was generated from the following file: