Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
mod_data\search\sortedcontentqueue Class Reference

Priority Queue class to sort out db entry contents. More...

Inheritance diagram for mod_data\search\sortedcontentqueue:

Public Member Functions

 __construct ($contents)
 contructor
 
 compare ($key1, $key2)
 comparator function overriden for sorting the records ...as per 'required' and 'priotirity' field values
 

Detailed Description

Priority Queue class to sort out db entry contents.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Constructor & Destructor Documentation

◆ __construct()

mod_data\search\sortedcontentqueue::__construct ( $contents)

contructor

Parameters
array$contents
Return values
void

Member Function Documentation

◆ compare()

mod_data\search\sortedcontentqueue::compare ( $key1,
$key2 )

comparator function overriden for sorting the records ...as per 'required' and 'priotirity' field values

Parameters
int$key1
int$key2
Return values
int

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