public __construct ( object $entity, string $relationship_name, string $sort_by, |
||
$entity | object | Entity to retrieve relationships from |
$relationship_name | string | Name of the relationship on provided entity |
$sort_by | string | Sort by column |
$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 |
/** * @param string $class_name Class name of table to query * @param string $sort_by Sort by column * @param Direction $direction Assumes ascending if omitted * @param int $start Start index (inclusive), null/0 for beginning of set * @param int $end Stop index (inclusive), null/-1 for end of set, -2 for penultimate record */ public function __construct($class_name, $sort_by, Direction $direction = null, $start = null, $end = null) { parent::__construct($class_name, null, $sort_by, $direction, $start, $end); }