PHP Class Bravo3\Orm\Query\SortedQuery

Inheritance: extends AbstractQuery, implements Bravo3\Orm\Query\QueryInterface
Afficher le fichier Open project: bravo3/orm Class Usage Examples

Protected Properties

Свойство Type Description
$direction Bravo3\Orm\Enum\Direction
$end integer
$entity object
$relationship_name string
$sort_by string
$start integer

Méthodes publiques

Méthode Description
__construct ( object $entity, string $relationship_name, string $sort_by, Direction $direction = null, integer $start = null, integer $end = null )
getDirection ( ) : Direction Get Direction
getEnd ( ) : integer Get end index
getEntity ( ) : object Get Entity
getRelationshipName ( ) : string Get relationship name
getSortBy ( ) : string Get sorting field name
getStart ( ) : integer Get start index
setDirection ( Direction $direction ) Set Direction
setEnd ( integer $end ) Set end index
setEntity ( object $entity ) Set Entity
setRelationshipName ( string $relationship_name ) Set relationship name
setSortBy ( string $sort_by ) Set sorting field name
setStart ( integer $start ) Set start index

Method Details

__construct() public méthode

public __construct ( object $entity, string $relationship_name, string $sort_by, Direction $direction = null, integer $start = null, integer $end = null )
$entity object Entity to retrieve relationships from
$relationship_name string Name of the relationship on provided entity
$sort_by string Sort by column
$direction Bravo3\Orm\Enum\Direction Assumes ascending if omitted
$start integer Start index (inclusive), null/0 for beginning of set
$end integer Stop index (inclusive), null/-1 for end of set, -2 for penultimate record

getDirection() public méthode

Get Direction
public getDirection ( ) : Direction
Résultat Bravo3\Orm\Enum\Direction

getEnd() public méthode

Get end index
public getEnd ( ) : integer
Résultat integer

getEntity() public méthode

Get Entity
public getEntity ( ) : object
Résultat object

getRelationshipName() public méthode

Get relationship name
public getRelationshipName ( ) : string
Résultat string

getSortBy() public méthode

Get sorting field name
public getSortBy ( ) : string
Résultat string

getStart() public méthode

Get start index
public getStart ( ) : integer
Résultat integer

setDirection() public méthode

Set Direction
public setDirection ( Direction $direction )
$direction Bravo3\Orm\Enum\Direction

setEnd() public méthode

Set end index
public setEnd ( integer $end )
$end integer

setEntity() public méthode

Set Entity
public setEntity ( object $entity )
$entity object

setRelationshipName() public méthode

Set relationship name
public setRelationshipName ( string $relationship_name )
$relationship_name string

setSortBy() public méthode

Set sorting field name
public setSortBy ( string $sort_by )
$sort_by string

setStart() public méthode

Set start index
public setStart ( integer $start )
$start integer

Property Details

$direction protected_oe property

protected Direction,Bravo3\Orm\Enum $direction
Résultat Bravo3\Orm\Enum\Direction

$end protected_oe property

protected int $end
Résultat integer

$entity protected_oe property

protected object $entity
Résultat object

$relationship_name protected_oe property

protected string $relationship_name
Résultat string

$sort_by protected_oe property

protected string $sort_by
Résultat string

$start protected_oe property

protected int $start
Résultat integer