EasyBlogModelSubscriptions
extends EasyBlogAdminModel
in package
Table of Contents
Properties
- $data : mixed
- $pagination : mixed
- $searchables : mixed
- $total : mixed
Methods
- __construct() : mixed
- _buildQuery() : string
- Method to build the query for the tags
- _buildQueryOrderBy() : mixed
- _buildQueryWhere() : mixed
- deleteSubscriptions() : mixed
- Allows a caller to remove a subscription
- deleteUserSubscriptions() : mixed
- Allows a caller to remove a subscription
- getPagination() : int
- Method to get a pagination object
- getSearchableItems() : mixed
- Get searchable columns
- getSiteSubscribers() : mixed
- getSubscriptions() : mixed
- getSubscriptionsByUser() : mixed
- Retrieves a list of subscriptions a user has
- getTotal() : int
- Method to get the total number of records
- getUserStateFromRequest() : mixed
- Gets the value of a user state variable.
- bindTable() : mixed
- implodeValues() : mixed
- populateState() : void
- Stock method to auto-populate the model state.
Properties
$data
public
mixed
$data
= \null
$pagination
public
mixed
$pagination
= \null
$searchables
public
mixed
$searchables
= array()
$total
public
mixed
$total
= \null
Methods
__construct()
public
__construct() : mixed
_buildQuery()
Method to build the query for the tags
public
_buildQuery() : string
Tags
Return values
string_buildQueryOrderBy()
public
_buildQueryOrderBy() : mixed
_buildQueryWhere()
public
_buildQueryWhere() : mixed
deleteSubscriptions()
Allows a caller to remove a subscription
public
deleteSubscriptions(mixed $uid, mixed $type) : mixed
Parameters
- $uid : mixed
- $type : mixed
Tags
deleteUserSubscriptions()
Allows a caller to remove a subscription
public
deleteUserSubscriptions(mixed $key[, mixed $type = 'user_id' ]) : mixed
Parameters
- $key : mixed
- $type : mixed = 'user_id'
Tags
getPagination()
Method to get a pagination object
public
getPagination() : int
Tags
Return values
intgetSearchableItems()
Get searchable columns
public
getSearchableItems(mixed $query) : mixed
Parameters
- $query : mixed
Tags
getSiteSubscribers()
public
getSiteSubscribers() : mixed
getSubscriptions()
public
getSubscriptions([mixed $sort = 'latest' ][, mixed $filter = 'site' ]) : mixed
Parameters
- $sort : mixed = 'latest'
- $filter : mixed = 'site'
getSubscriptionsByUser()
Retrieves a list of subscriptions a user has
public
getSubscriptionsByUser([mixed $userId = null ]) : mixed
Parameters
- $userId : mixed = null
Tags
getTotal()
Method to get the total number of records
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'
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