Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Public Member Functions | List of all members
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 More...
 
 compare ($key1, $key2)
 comparator function overriden for sorting the records ...as per 'required' and 'priotirity' field values More...
 

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
bool

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