Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
|
Abstract Blog_Listing class: used to gather blog entries and output them as listings. More...
Public Member Functions | |
__construct ($filters=array()) | |
Constructor. More... | |
count_entries () | |
Finds total number of blog entries. More... | |
get_baseurl () | |
get_entries ($start=0, $limit=10) | |
Fetches the array of blog entries. More... | |
get_entry_fetch_sql ($count=false, $sort='lastmodified DESC', $userid=false) | |
print_entries () | |
Outputs all the blog entries aggregated by this blog listing. More... | |
Public Attributes | |
array | $entries = null |
Array of blog_entry objects. More... | |
array | $filters = array() |
An array of blog_filter_* objects $filters. | |
int | $totalentries = null |
Caches the total number of the entries. | |
Abstract Blog_Listing class: used to gather blog entries and output them as listings.
One of the subclasses must be used.
@subpackage blog
blog_listing::__construct | ( | $filters = array() | ) |
Constructor.
array | $filters | An associative array of filtername => filterid |
blog_listing::count_entries | ( | ) |
Finds total number of blog entries.
int |
blog_listing::get_entries | ( | $start = 0 , |
|
$limit = 10 |
|||
) |
Fetches the array of blog entries.
array |
blog_listing::print_entries | ( | ) |
Outputs all the blog entries aggregated by this blog listing.
void |
array blog_listing::$entries = null |
Array of blog_entry objects.
$entries