Documentation

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()

$pagination

private mixed $pagination = \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
since
5.0
access

public

getPagination()

Method to get a pagination object for the categories

public getPagination() : int
Tags
access

public

Return values
int

getPosts()

public getPosts([mixed $options = array() ]) : mixed
Parameters
$options : mixed = array()

getSearchableItems()

Get searchable columns

public getSearchableItems(mixed $query) : mixed
Parameters
$query : mixed
Tags
since
5.2.0
access

public

getTotal()

Method to get a pagination object for the categories

public getTotal() : int
Tags
access

public

Return values
int

getUserStateFromRequest()

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
since
4.0
access

public

makeFeatured()

Makes an object a featured item

public makeFeatured(mixed $type, mixed $contentId) : mixed
Parameters
$type : mixed
$contentId : mixed
Tags
since
4.0
access

public

preload()

This method reduces the number of query hit on the server

public preload([mixed $postIds = array() ]) : mixed
Parameters
$postIds : mixed = array()
Tags
since
5.0
access

public

removeFeatured()

Removes an object from being featured

public static removeFeatured(mixed $type, mixed $contentId) : mixed
Parameters
$type : mixed
$contentId : mixed
Tags
since
4.0
access

public

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
Tags
since
12.2

        
On this page

Search results