EasyBlogModelFeatured
extends EasyBlogAdminModel
in package
Table of Contents
Properties
- $searchables : mixed
- $data : mixed
- $pagination : mixed
- $total : mixed
Methods
- __construct() : mixed
- _buildQuery() : mixed
- _buildQueryLanguage() : mixed
- _buildQueryOrderBy() : mixed
- _buildQueryWhere() : mixed
- exists() : mixed
- Determines if a featured item already exists on the site
- getPagination() : int
- Method to get a pagination object for the categories
- getPosts() : mixed
- getSearchableItems() : mixed
- Get searchable columns
- getTotal() : int
- Method to get a pagination object for the categories
- getUserStateFromRequest() : mixed
- Gets the value of a user state variable.
- isFeatured() : mixed
- Determines if an object is featured on the site
- makeFeatured() : mixed
- Makes an object a featured item
- preload() : mixed
- This method reduces the number of query hit on the server
- removeFeatured() : mixed
- Removes an object from being featured
- bindTable() : mixed
- implodeValues() : mixed
- populateState() : void
- Stock method to auto-populate the model state.
Properties
$searchables
public
mixed
$searchables
= array()
$data
private
mixed
$data
= \null
$pagination
private
mixed
$pagination
= \null
$total
private
mixed
$total
= \null
Methods
__construct()
public
__construct() : mixed
_buildQuery()
public
_buildQuery() : mixed
_buildQueryLanguage()
public
_buildQueryLanguage() : mixed
_buildQueryOrderBy()
public
_buildQueryOrderBy() : mixed
_buildQueryWhere()
public
_buildQueryWhere() : mixed
exists()
Determines if a featured item already exists on the site
public
exists(mixed $type, mixed $contentId) : mixed
Parameters
- $type : mixed
- $contentId : mixed
Tags
getPagination()
Method to get a pagination object for the categories
public
getPagination() : int
Tags
Return values
intgetPosts()
public
getPosts([mixed $options = array() ]) : mixed
Parameters
- $options : mixed = array()
getSearchableItems()
Get searchable columns
public
getSearchableItems(mixed $query) : mixed
Parameters
- $query : mixed
Tags
getTotal()
Method to get a pagination object for the categories
public
getTotal() : int
Tags
Return values
intgetUserStateFromRequest()
Gets the value of a user state variable.
public
getUserStateFromRequest(mixed $key, mixed $request[, mixed $default = null ][, mixed $type = 'none' ]) : mixed
Parameters
- $key : mixed
- $request : mixed
- $default : mixed = null
- $type : mixed = 'none'
isFeatured()
Determines if an object is featured on the site
public
isFeatured(mixed $type, mixed $id) : mixed
Parameters
- $type : mixed
- $id : mixed
Tags
makeFeatured()
Makes an object a featured item
public
makeFeatured(mixed $type, mixed $contentId) : mixed
Parameters
- $type : mixed
- $contentId : mixed
Tags
preload()
This method reduces the number of query hit on the server
public
preload([mixed $postIds = array() ]) : mixed
Parameters
- $postIds : mixed = array()
Tags
removeFeatured()
Removes an object from being featured
public
static removeFeatured(mixed $type, mixed $contentId) : mixed
Parameters
- $type : mixed
- $contentId : mixed
Tags
bindTable()
protected
bindTable(mixed $tableName, mixed $result) : mixed
Parameters
- $tableName : mixed
- $result : mixed
implodeValues()
protected
implodeValues(mixed $data) : mixed
Parameters
- $data : mixed
populateState()
Stock method to auto-populate the model state.
protected
populateState() : void