Methods summary
public
array
|
#
getTimeline( array $blogs = array(), array $blog_data = array(), array $datetime = array() )
Parameters
- $blogs
array $blogs
- $blog_data
array $blog_data
- $datetime
array $datetime
Returns
array
|
public
|
|
protected
|
#
setFields( mixed $fields = array(), mixed $add_table = true )
|
public
blogPostModel
|
#
search( array $options = array(), array $extend_options = array(), array $extend_data = array() )
Generic search post entries method
Generic search post entries method
$options
- sort:
- year: int|int[] 2011|array(2009,2011)|array(2007,2008,...) ate option if
single exact match, interval if array of two items, one of items in array more
then two items
- month:int|int[]
- day: int|int[]
- datetime:
- status: Status has default self::STATUS_PUBLISHED if not specified, all
statuses if false or specified in array<
- contact_id: If specified records will be checked authorship in non
self::STATUS_PUBLISHED status
- blog_id:
- text:
Parameters
- $options
array @options
- $extend_options
array $extend_options see prepareView method
- $extend_data
array $extend_data
Returns
See
Overrides
|
public
mixed
|
#
prepareView( mixed $items, array $extend_options = array(), array $extend_data = array() )
Supplement the items data
Supplement the items data
$extend_options - link: if it false - not add author posts - plugin: if false
suppress plugin provided data - datetime: - test:
Parameters
- $items
mixed $items
- $extend_options
array @extend_options
- $extend_data
array $extend_data
Returns
mixed
|
public
array
|
#
getBySlug( string $slug )
Get post entry by it slug
Get post entry by it slug
Parameters
Returns
array
|
public
integer
|
#
updateItem( integer $id, array $data = array(), array $current_data = array() )
Update blog post item
Parameters
- $id
integer $id
- $data
array $data
- $current_data
array $current_data
Returns
integer post id
Throws
|
public
boolean
|
#
deleteByField( mixed $field, mixed $value = null )
Delete records from table and related data
Delete records from table and related data
Parameters
- $field
mixed $field
- $value
mixed $value
Returns
boolean
Overrides
|
public
|
|
public static
|
|
public static
|
|
public
array
|
#
validate( array & $data, array $options = array() )
Validate data
Parameters
- $data
array &$data
- $options
array $options
Returns
array messages or empty array
|
public
array|null
|
#
getById( integer|array $id, mixed $exclude_fields = null )
Returns data from table record with specified value in id field
($this->id).
Returns data from table record with specified value in id field
($this->id).
Parameters
- $id
integer|array $value Field value or array of values
- $exclude_fields
Returns
array|null
Overrides
|
public
|
|