Class: ItemList
Source Location: /blogs/b2evocore/_class_itemlist.php
Class ItemList
Class Overview
|
Item List Class Located in /blogs/b2evocore/_class_itemlist.php [line 41] DataObjectList | --ItemListAuthor(s):
|
[ Top ]
Inherited Properties, Constants, and Methods
| Inherited Properties | Inherited Methods | Inherited Constants |
|---|---|---|
|
Inherited From DataObjectList
|
[ Top ]
Property Summary
| mixed | $blog | |
| mixed | $group_by_cat | |
| mixed | $limitdate_end | |
| mixed | $limitdate_start | |
| mixed | $main_cat | |
| mixed | $max_paged | |
| mixed | $p | |
| mixed | $postIDarray | |
| mixed | $postIDlist | |
| mixed | $preview | |
| mixed | $previous_main_cat | |
| mixed | $result_num_rows | |
| mixed | $row | |
| mixed | $row_num | |
| mixed | $total_num_posts | |
| mixed | $what_to_show |
[ Top ]
Method Summary
| ItemList | ItemList() | Constructor |
| void | calc_max() | |
| void | date_if_changed() | Template function: Display the date if it has changed since last call |
| true | display_if_empty() | Template function: display message if list is empty |
| void | get_category_group() | |
| void | get_item() | |
| void | get_max_paged() | |
| void | get_postdata() | |
| void | get_total_num_posts() | |
| void | mod_date() | Template function: display last mod date (datetime) of Item |
| void | preview_request() | |
| void | restart() |
[ Top ]
Methods
Constructor ItemList [line 107]
|
Constructor
Parameters:| integer | $blog: | Blog ID |
| array | $show_statuses: | show_statuses |
| mixed | $p: | Specific post number to display |
| mixed | $m: | YearMonth(Day) to display |
| mixed | $w: | Week number. Note: uses mySQL's week numbering and mySQL default if applicable. In mySQL < 4.0, WEEK() uses mode 0: Week starts on Sunday; Value range is 0 to 53; week 1 is the first week that starts in this year |
| mixed | $cat: | List of cats to restrict to |
| array | $catsel: | Array of cats to restrict to |
| mixed | $author: | List of authors to restrict to |
| string | $order: | sort order can be either ASC or DESC |
| string | $orderby: | space separated list of fields to order by. Possible list elements are: author issue_date mod_date status locale content title urltitle url ctageory wordcount comments |
| mixed | $posts: | # of posts to display on the page |
| mixed | $paged: | List page number in paged display |
| mixed | $poststart: | Start results at this position |
| mixed | $postend: | End results at this position |
| string | $s: | Search string |
| mixed | $sentence: | Search for sentence or for words |
| mixed | $exact: | Require exact match of title or contents |
| boolean | $preview: | Is this preview |
| mixed | $default_posts_per_page: | |
| mixed | $init_what_to_show: | |
| mixed | $timestamp_min: | Do not show posts before this timestamp, can be 'now' |
| mixed | $timestamp_max: | Do not show posts after this timestamp, can be 'now' |
| string | $title: | urltitle of post to display |
[ Top ]
date_if_changed [line 855]
|
Template function: Display the date if it has changed since last call
Parameters:| string | $before: | string to display before the date (if changed) |
| string | $after: | string to display after the date (if changed) |
| string | $format: | date/time format: leave empty to use locale default time format |
[ Top ]
display_if_empty [line 885]
|
Template function: display message if list is empty
Parameters:| string | $message: | String to display if list is empty |
API Tags:
| Return: | if empty |
Redefinition of:
- DataObjectList::display_if_empty()
- Template function: display message if list is empty
[ Top ]
mod_date [line 668]
|
Template function: display last mod date (datetime) of Item
Parameters:| string | $format: | date/time format: leave empty to use locale default date format |
| boolean | $useGM: | true if you want GMT |
[ Top ]
restart [line 633]
|
Redefinition of:
- DataObjectList::restart()
- Rewind resultset
[ Top ]
