EasyBlogModelBlogger
extends EasyBlogAdminModel
in package
Table of Contents
Properties
- $_data : mixed
- $_pagination : mixed
- $_total : mixed
- $searchables : mixed
Methods
- __construct() : mixed
- addBloggerSubscription() : mixed
- getAllBloggers() : mixed
- Retrieve all bloggers on the site
- getBloggers() : mixed
- Retrieves a list of bloggers from the site
- getBlogggerSubscribers() : mixed
- getCategoryUsed() : mixed
- getData() : mixed
- Method to get blog posts listing
- getPagination() : int
- Method to get a pagination object for the categories
- getPostAuthors() : mixed
- Retrieves a list of authors used in backend posts listing author filters
- getRecentPosts() : mixed
- Retrieves a list of recent posts from an author
- getSearchableItems() : mixed
- Get searchable columns
- getSiteAuthors() : mixed
- Retrieves a list of bloggers from the site
- getTagUsed() : mixed
- getTotalBlogCreated() : mixed
- Retrieves the total number of posts created by an author.
- getUserStateFromRequest() : mixed
- Gets the value of a user state variable.
- isBloggerSubscribedEmail() : mixed
- isBloggerSubscribedUser() : mixed
- preload() : mixed
- This method reduces the number of query hit on the server
- preloadBlogggerSubscribers() : mixed
- preloadCategoryUsed() : mixed
- preload categories used by bloggers.
- preloadPosts() : mixed
- This method reduces the number of query hit on the server
- preloadTagUsed() : mixed
- preload tag used by bloggers.
- updateBloggerSubscriptionEmail() : mixed
- 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
$_total
public
mixed
$_total
= \null
$searchables
public
mixed
$searchables
= array()
Methods
__construct()
public
__construct() : mixed
addBloggerSubscription()
public
addBloggerSubscription(mixed $bloggerId, mixed $email[, mixed $userId = '0' ][, mixed $fullname = '' ]) : mixed
Parameters
- $bloggerId : mixed
- $email : mixed
- $userId : mixed = '0'
- $fullname : mixed = ''
getAllBloggers()
Retrieve all bloggers on the site
public
getAllBloggers() : mixed
Tags
getBloggers()
Retrieves a list of bloggers from the site
public
getBloggers([mixed $sort = 'latest' ][, mixed $limit = 0 ][, mixed $filter = 'showallblogger' ][, mixed $search = '' ][, mixed $inclusion = array() ][, mixed $exclusion = array() ][, mixed $featuredOnly = '' ][, mixed $ignorePagination = false ]) : mixed
Parameters
- $sort : mixed = 'latest'
- $limit : mixed = 0
- $filter : mixed = 'showallblogger'
- $search : mixed = ''
- $inclusion : mixed = array()
- $exclusion : mixed = array()
- $featuredOnly : mixed = ''
- $ignorePagination : mixed = false
Tags
getBlogggerSubscribers()
public
getBlogggerSubscribers(mixed $bloggerId) : mixed
Parameters
- $bloggerId : mixed
getCategoryUsed()
public
getCategoryUsed(mixed $bloggerId[, mixed $limit = null ]) : mixed
Parameters
- $bloggerId : mixed
- $limit : mixed = null
getData()
Method to get blog posts listing
public
getData([mixed $sort = 'latest' ][, mixed $limit = 0 ][, mixed $filter = 'showallblogger' ]) : mixed
Parameters
- $sort : mixed = 'latest'
- $limit : mixed = 0
- $filter : mixed = 'showallblogger'
Tags
getPagination()
Method to get a pagination object for the categories
public
getPagination() : int
Tags
Return values
intgetPostAuthors()
Retrieves a list of authors used in backend posts listing author filters
public
getPostAuthors() : mixed
Tags
getRecentPosts()
Retrieves a list of recent posts from an author
public
getRecentPosts(mixed $authorId, mixed $limit[, mixed $excludePostId = null ]) : mixed
Parameters
- $authorId : mixed
- $limit : mixed
- $excludePostId : mixed = null
Tags
getSearchableItems()
Get searchable columns
public
getSearchableItems(mixed $query) : mixed
Parameters
- $query : mixed
Tags
getSiteAuthors()
Retrieves a list of bloggers from the site
public
getSiteAuthors([mixed $limit = 0 ][, mixed $limitstart = 0 ]) : mixed
Parameters
- $limit : mixed = 0
- $limitstart : mixed = 0
Tags
getTagUsed()
public
getTagUsed(mixed $bloggerId[, mixed $limit = null ]) : mixed
Parameters
- $bloggerId : mixed
- $limit : mixed = null
getTotalBlogCreated()
Retrieves the total number of posts created by an author.
public
getTotalBlogCreated(mixed $id) : mixed
Parameters
- $id : mixed
Tags
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'
isBloggerSubscribedEmail()
public
isBloggerSubscribedEmail(mixed $bloggerId, mixed $email) : mixed
Parameters
- $bloggerId : mixed
- $email : mixed
isBloggerSubscribedUser()
public
isBloggerSubscribedUser(mixed $bloggerId, mixed $userId[, mixed $email = null ]) : mixed
Parameters
- $bloggerId : mixed
- $userId : mixed
- $email : mixed = null
preload()
This method reduces the number of query hit on the server
public
preload([mixed $authorIds = [] ]) : mixed
Parameters
- $authorIds : mixed = []
Tags
preloadBlogggerSubscribers()
public
preloadBlogggerSubscribers(mixed $bloggerIds) : mixed
Parameters
- $bloggerIds : mixed
preloadCategoryUsed()
preload categories used by bloggers.
public
preloadCategoryUsed(mixed $bloggerIds[, mixed $isCount = false ]) : mixed
Parameters
- $bloggerIds : mixed
- $isCount : mixed = false
Tags
preloadPosts()
This method reduces the number of query hit on the server
public
preloadPosts(mixed $bloggerIds[, mixed $limit = null ]) : mixed
Parameters
- $bloggerIds : mixed
- $limit : mixed = null
Tags
preloadTagUsed()
preload tag used by bloggers.
public
preloadTagUsed(mixed $bloggerIds[, mixed $isCount = false ]) : mixed
Parameters
- $bloggerIds : mixed
- $isCount : mixed = false
Tags
updateBloggerSubscriptionEmail()
public
updateBloggerSubscriptionEmail(mixed $sid, mixed $userid, mixed $email) : mixed
Parameters
- $sid : mixed
- $userid : mixed
- $email : mixed
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