ItemQuery ItemQuery(
string
$dbtablename, [string
$dbprefix = ''], string
$dbIDname
)
|
|
Constructor.
Parameters:
|
string |
$dbtablename: |
Name of table in database |
|
string |
$dbprefix: |
Prefix of fields in the table |
|
string |
$dbIDname: |
Name of the ID field (including prefix) |
void where_assignees(
string
$assignees
)
|
|
Restrict to specific assignees
Parameters:
|
string |
$assignees: |
List of assignees to restrict to (must have been previously validated) |
void where_author(
string
$author
)
|
|
Restrict to specific authors
Parameters:
|
string |
$author: |
List of authors to restrict to (must have been previously validated) |
void where_author_assignee(
integer
$author_assignee
)
|
|
Restrict to specific assignee or author
Parameters:
|
integer |
$author_assignee: |
assignee or author to restrict to (must have been previously validated) |
void where_chapter(
integer
$blog, [string
$cat = ''], [array
$catsel = array()]
)
|
|
Restrict to specific collection/chapters (blog/categories)
Parameters:
|
integer |
$blog: |
|
|
string |
$cat: |
List of cats to restrict to |
|
array |
$catsel: |
Array of cats to restrict to |
void where_chapter2(
Blog
&$Blog, array
$cat_array, string
$cat_modifier, [string
$cat_focus = 'wide']
)
|
|
Restrict to specific collection/chapters (blog/categories)
Parameters:
|
Blog |
&$Blog: |
|
|
array |
$cat_array: |
|
|
string |
$cat_modifier: |
|
|
string |
$cat_focus: |
'wide' to search in extra cats too, 'main' for main cat only |
void where_datecreated(
[mixed
$timestamp_created_max = 'now']
)
|
|
Restricts creation date to a specific date range.
Parameters:
|
mixed |
$timestamp_created_max: |
Do not show posts CREATED after this timestamp |
void where_datestart(
[string
$m = ''], [integer
$w = ''], [string
$dstart = ''], [string
$dstop = ''], [mixed
$timestamp_min = ''], [mixed
$timestamp_max = 'now']
)
|
|
Restricts to a specific date range. (despite thje 'start' in the name
Priorities: -dstart and/or dstop -week + m -m
Parameters:
|
string |
$m: |
YYYYMMDDHHMMSS (everything after YYYY is optional) or '' |
|
integer |
$w: |
week number or '' |
|
string |
$dstart: |
YYYYMMDDHHMMSS to start at, '' for first available |
|
string |
$dstop: |
YYYYMMDDHHMMSS to stop at |
|
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' |
API Tags:
| See: | ItemList2::get_advertised_start_date() |
Information Tags:
void where_featured(
[boolean|NULL
$featured = NULL]
)
|
|
Restrict to the featured/non featured posts if requested
Parameters:
|
boolean|NULL |
$featured: |
Restrict to featured |
void where_ID(
[
$p = ''], [
$title = '']
)
|
|
Restrict to a specific post
Parameters:
void where_ID_list(
[
$pl = '']
)
|
|
Restrict to a specific list of posts
Parameters:
void where_keywords(
string
$keywords, mixed
$phrase, mixed
$exact
)
|
|
Restrict with keywords
Parameters:
|
string |
$keywords: |
Keyword search string |
|
mixed |
$phrase: |
Search for entire phrase or for individual words |
|
mixed |
$exact: |
Require exact match of title or contents |
void where_locale(
string
$locale
)
|
|
Restrict to specific locale
Parameters:
|
string |
$locale: |
locale to restrict to ('all' if you don't want to restrict) |
void where_statuses(
string
$statuses
)
|
|
Restrict to specific (exetnded) statuses
Parameters:
|
string |
$statuses: |
List of assignees to restrict to (must have been previously validated) |
void where_tags(
string
$tags
)
|
|
Restrict to specific tags
Parameters:
|
string |
$tags: |
List of tags to restrict to |
void where_types(
string
$types
)
|
|
Restrict to specific item types
Parameters:
|
string |
$types: |
List of types to restrict to (must have been previously validated) |
void where_visibility(
array
$show_statuses
)
|
|
Restrict to the visibility/sharing statuses we want to show
Parameters:
|
array |
$show_statuses: |
Restrict to these statuses |