Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
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: