An array of records that is sortable by many fields.
More...
|
static | sort (array $records, array $fields) |
| Sorts this array using the given fields. More...
|
|
An array of records that is sortable by many fields.
For more info on the ArrayObject class have a look at php.net.
@subpackage course
- Copyright
- 2013 Sam Hemelryk
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ sort()
static coursecat_sortable_records::sort |
( |
array |
$records, |
|
|
array |
$fields |
|
) |
| |
|
static |
Sorts this array using the given fields.
- Parameters
-
array | $records | |
array | $fields | |
- Return values
-
◆ sort_by_many_fields()
coursecat_sortable_records::sort_by_many_fields |
( |
|
$a, |
|
|
|
$b |
|
) |
| |
Sorts the two records based upon many fields.
This method should not be called itself, please call $sort instead. It has been marked as access private as such.
- Parameters
-
- Return values
-
◆ $sortfields
array coursecat_sortable_records::$sortfields = array() |
|
protected |
An array of sortable fields.
Gets set temporarily when sort is called.
The documentation for this class was generated from the following file: