EasyBlogModelBlogs
extends EasyBlogAdminModel
in package
Table of Contents
Properties
- $searchables : mixed
- $total : mixed
Methods
- __construct() : mixed
- _buildDataQueryWhere() : mixed
- Builds the where statement
- _buildQuery() : mixed
- _buildQueryOrderBy() : mixed
- _buildQueryWhere() : mixed
- emptyTrash() : mixed
- Deletes a list of blog posts flagged as trash
- exportTemplates() : mixed
- Export Post Templates
- getAutoAchivingPosts() : mixed
- Retrieves a list of post for auto archiving process
- getBlogs() : mixed
- Retrieves a list of blog posts on the site
- getCategoryRepostingPosts() : mixed
- Retrieves a list of post for re-posting
- getData() : mixed
- Retrieves a list of blog posts created on the site
- getDataPagination() : mixed
- Retrieve pagination for the post
- getPagination() : int
- Method to get a pagination object for the events
- getScheduledAutoposts() : mixed
- Retrieves a list of scheduled autopost The first parameter 'limit' must set it to 1 for prevent those social network treat it as spam
- getScheduledPosts() : mixed
- Retrieves a list of scheduled posts The first parameter 'limit' must set it to 1 for prevent those social network treat it as spam
- getSearchableItems() : mixed
- Get searchable columns
- getTotal() : int
- Method to return the total number of rows
- getTotalPending() : mixed
- Retrieves the total number of pending posts from the site
- getTotalPublished() : mixed
- getTotalUnpublished() : mixed
- getUnpublishScheduledPosts() : mixed
- Get all blog posts thare are scheduled to be unpublised
- getUserStateFromRequest() : mixed
- Gets the value of a user state variable.
- publish() : mixed
- Sets the publish state of a post
- unpublishScheduledPosts() : mixed
- Unpublishes blog posts that are scheduled to be unpublished
- updateCategoryRepostingFlag() : mixed
- bindTable() : mixed
- implodeValues() : mixed
- populateState() : void
- Populate current stats
Properties
$searchables
public
mixed
$searchables
= array('id', 'permalink')
$total
public
mixed
$total
Methods
__construct()
public
__construct() : mixed
_buildDataQueryWhere()
Builds the where statement
public
_buildDataQueryWhere() : mixed
Tags
_buildQuery()
public
_buildQuery() : mixed
_buildQueryOrderBy()
public
_buildQueryOrderBy() : mixed
_buildQueryWhere()
public
_buildQueryWhere() : mixed
emptyTrash()
Deletes a list of blog posts flagged as trash
public
emptyTrash() : mixed
Tags
exportTemplates()
Export Post Templates
public
exportTemplates(mixed $ids) : mixed
Parameters
- $ids : mixed
Tags
getAutoAchivingPosts()
Retrieves a list of post for auto archiving process
public
getAutoAchivingPosts([mixed $limit = 10 ]) : mixed
Parameters
- $limit : mixed = 10
Tags
getBlogs()
Retrieves a list of blog posts on the site
public
getBlogs([mixed $userId = null ][, mixed $options = array() ]) : mixed
Parameters
- $userId : mixed = null
- $options : mixed = array()
Tags
getCategoryRepostingPosts()
Retrieves a list of post for re-posting
public
getCategoryRepostingPosts([mixed $limit = 1 ]) : mixed
Parameters
- $limit : mixed = 1
Tags
getData()
Retrieves a list of blog posts created on the site
public
getData([mixed $userId = null ]) : mixed
Parameters
- $userId : mixed = null
Tags
getDataPagination()
Retrieve pagination for the post
public
getDataPagination() : mixed
Tags
getPagination()
Method to get a pagination object for the events
public
getPagination() : int
Tags
Return values
intgetScheduledAutoposts()
Retrieves a list of scheduled autopost The first parameter 'limit' must set it to 1 for prevent those social network treat it as spam
public
getScheduledAutoposts([mixed $limit = 1 ]) : mixed
Parameters
- $limit : mixed = 1
Tags
getScheduledPosts()
Retrieves a list of scheduled posts The first parameter 'limit' must set it to 1 for prevent those social network treat it as spam
public
getScheduledPosts([mixed $limit = 1 ]) : mixed
Parameters
- $limit : mixed = 1
Tags
getSearchableItems()
Get searchable columns
public
getSearchableItems(mixed $query) : mixed
Parameters
- $query : mixed
Tags
getTotal()
Method to return the total number of rows
public
getTotal() : int
Tags
Return values
intgetTotalPending()
Retrieves the total number of pending posts from the site
public
getTotalPending() : mixed
Tags
getTotalPublished()
public
getTotalPublished(mixed $uid) : mixed
Parameters
- $uid : mixed
getTotalUnpublished()
public
getTotalUnpublished(mixed $uid) : mixed
Parameters
- $uid : mixed
getUnpublishScheduledPosts()
Get all blog posts thare are scheduled to be unpublised
public
getUnpublishScheduledPosts() : 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'
publish()
Sets the publish state of a post
public
publish([mixed &$ids = [] ][, mixed $publish = 1 ]) : mixed
Parameters
- $ids : mixed = []
- $publish : mixed = 1
Tags
unpublishScheduledPosts()
Unpublishes blog posts that are scheduled to be unpublished
public
unpublishScheduledPosts() : mixed
Tags
updateCategoryRepostingFlag()
public
updateCategoryRepostingFlag(mixed $ids) : mixed
Parameters
- $ids : mixed
bindTable()
protected
bindTable(mixed $tableName, mixed $result) : mixed
Parameters
- $tableName : mixed
- $result : mixed
implodeValues()
protected
implodeValues(mixed $data) : mixed
Parameters
- $data : mixed
populateState()
Populate current stats
protected
populateState() : void