ItemList2 ItemList2(
Blog
&$Blog, [mixed
$timestamp_min = NULL], [mixed
$timestamp_max = NULL], [integer|NULL
$limit = 20], [string
$cache_name = 'ItemCache'], [string
$param_prefix = ''], [string
$filterset_name = ''], array
7
)
|
|
Constructor
Parameters:
|
array |
7: |
restrictions for itemlist (position, contact, firm, ...) key: restriction name, value: ID of the restriction |
|
Blog |
&$Blog: |
|
|
mixed |
$timestamp_min: |
Default filter set: Do not show posts before this timestamp, can be 'now' |
|
mixed |
$timestamp_max: |
Default filter set: Do not show posts after this timestamp, can be 'now' |
|
integer|NULL |
$limit: |
Limit |
|
string |
$cache_name: |
name of cache to be used |
|
string |
$param_prefix: |
prefix to differentiate page/order params when multiple Results appear one same page |
|
string |
$filterset_name: |
Name to be used when saving the filterset (leave empty to use default for collection) |
Information Tags:
| Todo: | add param for saved session filter set |
Get all tags used in current ItemList
Information Tags:
| Todo: | caching in case of multiple calls |
array get_col_sort_values(
integer
$col_idx
)
|
|
Returns values needed to make sort links for a given column
Returns an array containing the following values:
- current_order : 'ASC', 'DESC' or ''
- order_asc : url needed to order in ascending order
- order_desc
- order_toggle : url needed to toggle sort order
Parameters:
|
integer |
$col_idx: |
column to sort |
Redefinition of:
- Results::get_col_sort_values()
- Returns values needed to make sort links for a given column
If the list is sorted by category...
This is basically just a stub for backward compatibility
Redefinition of:
- ItemListLight::get_item()
- If the list is sorted by category...
void &get_prevnext_Item(
[string
$direction = 'next']
)
|
|
Skip to previous/next Item
If several items share the same spot (like same issue datetime) then they'll get all skipped at once.
Parameters:
|
string |
$direction: |
prev | next (relative to the current sort order) |
void next_item_link(
[
$before = ''], [
$after = ''], [
$text = '$title$ »'], [
$no_item = ''], [
$display = true]
)
|
|
Skip to next
Parameters:
|
|
$before: |
|
|
|
$after: |
|
|
|
$text: |
|
|
|
$no_item: |
|
|
|
$display: |
|
void preview_from_request(
)
|
|
We want to preview a single post, we are going to fake a lot of things...
void prevnext_item_links(
$params
)
|
|
Link to previous and next link in collection
Parameters:
void prev_item_link(
[
$before = ''], [
$after = ''], [
$text = '« $title$'], [
$no_item = ''], [
$display = true]
)
|
|
Skip to previous
Parameters:
|
|
$before: |
|
|
|
$after: |
|
|
|
$text: |
|
|
|
$no_item: |
|
|
|
$display: |
|
Run Query: GET DATA ROWS *** HEAVY ***
Redefinition of:
- ItemListLight::query()
- Run Query: GET DATA ROWS *** LIGHT ***