Class: ItemQuery
Source Location: /blogs/inc/MODEL/items/_itemquery.class.php
Class ItemQuery
Class Overview
|
ItemQuery: help constructing queries on Items Located in /blogs/inc/MODEL/items/_itemquery.class.php [line 40] SQL | --ItemQuery |
[ Top ]
Inherited Properties, Constants, and Methods
| Inherited Properties | Inherited Methods | Inherited Constants |
|---|---|---|
|
Inherited From SQL |
Inherited From SQL
|
[ Top ]
Property Summary
| mixed | $assignees | |
| mixed | $author | |
| mixed | $blog | |
| mixed | $cat | |
| mixed | $catsel | |
| mixed | $dstart | |
| mixed | $dstop | |
| mixed | $exact | |
| mixed | $keywords | |
| mixed | $p | |
| mixed | $phrase | |
| mixed | $show_statuses | |
| mixed | $statuses | |
| mixed | $timestamp_max | |
| mixed | $timestamp_min | |
| mixed | $title |
[ Top ]
Method Summary
| ItemQuery | ItemQuery() | Constructor. |
| void | where_assignees() | Restrict to specific assignees |
| void | where_author() | Restrict to specific authors |
| void | where_author_assignee() | Restrict to specific assignee or author |
| void | where_chapter() | Restrict to specific collection/chapters (blog/categories) |
| void | where_chapter2() | Restrict to specific collection/chapters (blog/categories) |
| void | where_datestart() | Restricts to a specific date range. (despite thje 'start' in the name |
| void | where_ID() | Restrict to a specific post |
| void | where_keywords() | Restrict with keywords |
| void | where_statuses() | Restrict to specific (exetnded) statuses |
| void | where_visibility() | Restrict to the visibility/sharing statuses we want to show |
[ Top ]
Methods
Constructor ItemQuery [line 67]
|
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) |
[ Top ]
where_assignees [line 253]
|
Restrict to specific assignees
Parameters:| string | $assignees: | List of assignees to restrict to (must have been previously validated) |
[ Top ]
where_author [line 224]
|
Restrict to specific authors
Parameters:| string | $author: | List of authors to restrict to (must have been previously validated) |
[ Top ]
where_author_assignee [line 283]
|
Restrict to specific assignee or author
Parameters:| integer | $author_assignee: | assignee or author to restrict to (must have been previously validated) |
[ Top ]
where_chapter [line 116]
|
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 |
Information Tags:
| Todo: | get rid of blog #1 |
[ Top ]
where_chapter2 [line 167]
|
Restrict to specific collection/chapters (blog/categories)
Parameters:| integer | $blog_ID: | |
| $cat_array: | ||
| $cat_modifier: |
Information Tags:
| Todo: | get rid of blog #1 |
[ Top ]
where_datestart [line 344]
|
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:
| Todo: | -dstart + x days |
[ Top ]
where_ID [line 81]
|
Restrict to a specific post
Parameters:| $p: | ||
| $title: |
[ Top ]
where_keywords [line 495]
|
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 |
[ Top ]
where_statuses [line 302]
|
Restrict to specific (exetnded) statuses
Parameters:| string | $statuses: | List of assignees to restrict to (must have been previously validated) |
[ Top ]
