Class: ItemList
Source Location: /blogs/inc/MODEL/items/_itemlist.class.php
Class ItemList
Class Overview
|
Item List Class Located in /blogs/inc/MODEL/items/_itemlist.class.php [line 54] Widget | --Results | --DataObjectList | --ItemListAuthor(s):
|
[ Top ]
Inherited Properties, Constants, and Methods
| Inherited Properties | Inherited Methods | Inherited Constants |
|---|---|---|
|
Inherited From DataObjectList Inherited From Results
Inherited From Widget |
Inherited From DataObjectList
Inherited From Results
Inherited From Widget
|
[ Top ]
Property Summary
| integer | $blog | Blog ID to restrict to. 1 means "all blogs". |
| mixed | $cat | |
| mixed | $catsel | |
| mixed | $cat_array | |
| mixed | $cat_modifier | |
| mixed | $DataObjectCache | |
| mixed | $dbcols | |
| mixed | $group_by_cat | |
| mixed | $limitdate_end | |
| mixed | $limitdate_start | |
| mixed | $main_cat | |
| string|integer | $p | Specific post number to display. '' means don't restrict to single post. |
| mixed | $postIDarray | |
| mixed | $postIDlist | List of IDs in current page |
| mixed | $preview | |
| mixed | $previous_main_cat | |
| mixed | $row | |
| mixed | $row_num | |
| mixed | $show_statuses | |
| mixed | $timestamp_max | |
| mixed | $timestamp_min | |
| mixed | $unit | 'posts' or 'days' |
[ 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_lastpostdate() | |
| void | get_max_paged() | |
| void | get_postdata() | Init postdata |
| void | get_total_num_posts() | return total number of posts |
| void | mod_date() | Template function: display last mod date (datetime) of Item |
| string | preview_request() | Dummy mysql query for the preview |
| void | restart() |
[ Top ]
Properties
Methods
Constructor ItemList [line 147]
|
Constructor
Parameters:| integer | $blog: | Blog ID to query |
| array | $show_statuses: | Restrict to these statuses |
| mixed | $p: | Specific post number to display |
| mixed | $m: | YearMonth(Day) to display |
| mixed | $w: | Number of Week to display. 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 category wordcount comments |
| mixed | $posts_per_page: | # of posts to display on the page |
| mixed | $page_number: | List page number in paged display |
| mixed | $poststart: | Start results at this position |
| mixed | $postend: | End results at this position |
| string | $keywords: | Search string |
| mixed | $phrase: | Search for entire phrase or for individual words |
| mixed | $exact: | Require exact match of title or contents |
| boolean | $preview: | Is this preview |
| string | $unit: | 'posts' or 'days' |
| 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 |
| string | $dstart: | YearMonth(Day) to start at, '' for first available |
| string | $cache_name: | name of cache to be used |
| array | $params: | List of other params |
[ Top ]
date_if_changed [line 842]
|
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 870]
|
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:
- Results::display_if_empty()
- Template function: display message if list is empty
[ Top ]
get_postdata [line 782]
|
Init postdata
Information Tags:
| Todo: | we might want to move object instanciation upward rigth after the request is executed |
[ Top ]
mod_date [line 658]
|
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 ]
preview_request [line 475]
|
Dummy mysql query for the preview
API Tags:
| Return: | SQL query |
[ Top ]
