EasyBlogModelCategories
extends EasyBlogAdminModel
in package
Table of Contents
Properties
- $searchables : mixed
- $_data : mixed
- $_pagination : mixed
- $_total : mixed
Methods
- __construct() : mixed
- _buildQuery() : mixed
- Method to build the query for the tags
- _buildQueryByBlogger() : mixed
- Get categories for the dashboard
- _buildQueryOrderBy() : mixed
- Internal function to build query
- _buildQueryWhere() : mixed
- Internal function to build query's where condition
- deleteAssociation() : mixed
- Removes any association of a blog post with a category
- getBlogCategories() : mixed
- Retrieves the list of categories associated with a particular blog post
- getCategoriesByBlogger() : mixed
- Retrieves a list of categories created by a specific author.
- getCategoriesForFilters() : mixed
- Retrieves a list of categories used for search filter
- getCategoriesHierarchy() : mixed
- Retrieve category hierachy
- getCategoriesUsedByBlogger() : mixed
- Retrieves a list of categories created by a specific author.
- getCategoryTree() : mixed
- Retrieve categories hierary
- getChildCategories() : mixed
- Retrieves the child categories of a parent category
- getChildCount() : mixed
- Retrieve category child count.
- getCustomFieldGroup() : mixed
- Retrieves the custom field group properties
- getCustomFields() : mixed
- Retrieves the custom fields
- getData() : mixed
- Method to get categories item data
- getImmediateChildCategories() : mixed
- Retrieve the immediate category hierary of a parent category
- getMissingMetaCategories() : mixed
- Method to retrive those category which missing category meta data.
- getPagination() : mixed
- Method to get a pagination object for the categories
- getPaginationByBlogger() : mixed
- Retrieves the pagination by blogger
- getParams() : mixed
- Retrieves the category params
- getParentCategories() : mixed
- Retrieves a list of parent categories from the site
- getPrimaryCategory() : mixed
- Retrieves the primary category for the blog post
- getPrivateCategories() : mixed
- Retrieve all private categories.
- getSearchableItems() : mixed
- Get searchable columns
- getTotal() : mixed
- Method to get the total nr of the categories
- getTotalByBlogger() : mixed
- Retrieves the total category by blogger
- getUsedCount() : mixed
- Returns the number of blog entries created within this category.
- getUserStateFromRequest() : mixed
- Gets the value of a user state variable.
- preload() : mixed
- This method reduces the number of query hit on the server
- preloadActiveAuthors() : mixed
- Preload authors
- preloadActiveAuthorsCount() : mixed
- Preload authors count
- preloadCategoryChilds() : mixed
- This method reduces the number of query hit on the server
- preloadPosts() : mixed
- This method reduces the number of query hit on the server
- preloadUserSubscription() : mixed
- This method reduces the number of query hit on the server
- publish() : mixed
- Method to publish or unpublish categories
- searchCategories() : mixed
- Search category
- bindTable() : mixed
- implodeValues() : mixed
- populateState() : void
- Stock method to auto-populate the model state.
Properties
$searchables
public
mixed
$searchables
= array()
$_data
protected
mixed
$_data
= \null
$_pagination
protected
mixed
$_pagination
= \null
$_total
protected
mixed
$_total
= \null
Methods
__construct()
public
__construct() : mixed
_buildQuery()
Method to build the query for the tags
public
_buildQuery() : mixed
Tags
_buildQueryByBlogger()
Get categories for the dashboard
public
_buildQueryByBlogger([mixed $bloggerId = 0 ][, mixed $ordering = '' ][, mixed $search = '' ][, mixed $limit = null ]) : mixed
Parameters
- $bloggerId : mixed = 0
- $ordering : mixed = ''
- $search : mixed = ''
- $limit : mixed = null
Tags
_buildQueryOrderBy()
Internal function to build query
public
_buildQueryOrderBy() : mixed
Tags
_buildQueryWhere()
Internal function to build query's where condition
public
_buildQueryWhere() : mixed
Tags
deleteAssociation()
Removes any association of a blog post with a category
public
deleteAssociation(mixed $blogId) : mixed
Parameters
- $blogId : mixed
Tags
getBlogCategories()
Retrieves the list of categories associated with a particular blog post
public
getBlogCategories(mixed $id) : mixed
Parameters
- $id : mixed
Tags
getCategoriesByBlogger()
Retrieves a list of categories created by a specific author.
public
getCategoriesByBlogger([mixed $id = 0 ][, mixed $ordering = '' ][, mixed $search = '' ][, mixed $limit = null ]) : mixed
Parameters
- $id : mixed = 0
- $ordering : mixed = ''
- $search : mixed = ''
- $limit : mixed = null
Tags
getCategoriesForFilters()
Retrieves a list of categories used for search filter
public
getCategoriesForFilters([mixed $parentId = null ]) : mixed
Parameters
- $parentId : mixed = null
Tags
getCategoriesHierarchy()
Retrieve category hierachy
public
getCategoriesHierarchy([mixed $useLimit = true ]) : mixed
Parameters
- $useLimit : mixed = true
Tags
getCategoriesUsedByBlogger()
Retrieves a list of categories created by a specific author.
public
getCategoriesUsedByBlogger(mixed $userId) : mixed
Parameters
- $userId : mixed
Tags
getCategoryTree()
Retrieve categories hierary
public
getCategoryTree([mixed $sort = 'latest' ]) : mixed
Parameters
- $sort : mixed = 'latest'
Tags
getChildCategories()
Retrieves the child categories of a parent category
public
getChildCategories(mixed $parentId[, mixed $isPublishedOnly = false ][, mixed $isFrontendWrite = false ][, mixed $exclusion = array() ]) : mixed
Parameters
- $parentId : mixed
- $isPublishedOnly : mixed = false
- $isFrontendWrite : mixed = false
- $exclusion : mixed = array()
Tags
getChildCount()
Retrieve category child count.
public
getChildCount(mixed $categoryId[, mixed $published = false ]) : mixed
Parameters
- $categoryId : mixed
- $published : mixed = false
Tags
getCustomFieldGroup()
Retrieves the custom field group properties
public
getCustomFieldGroup(mixed $id[, mixed $type = 'write' ]) : mixed
Parameters
- $id : mixed
- $type : mixed = 'write'
Tags
getCustomFields()
Retrieves the custom fields
public
getCustomFields(mixed $id[, mixed $type = 'write' ]) : mixed
Parameters
- $id : mixed
- $type : mixed = 'write'
Tags
getData()
Method to get categories item data
public
getData([mixed $usePagination = true ]) : mixed
Parameters
- $usePagination : mixed = true
Tags
getImmediateChildCategories()
Retrieve the immediate category hierary of a parent category
public
getImmediateChildCategories(mixed $parentId[, mixed $options = array() ]) : mixed
Parameters
- $parentId : mixed
- $options : mixed = array()
Tags
getMissingMetaCategories()
Method to retrive those category which missing category meta data.
public
getMissingMetaCategories() : mixed
Tags
getPagination()
Method to get a pagination object for the categories
public
getPagination() : mixed
Tags
getPaginationByBlogger()
Retrieves the pagination by blogger
public
getPaginationByBlogger([mixed $bloggerId = 0 ][, mixed $search = '' ]) : mixed
Parameters
- $bloggerId : mixed = 0
- $search : mixed = ''
Tags
getParams()
Retrieves the category params
public
getParams() : mixed
Tags
getParentCategories()
Retrieves a list of parent categories from the site
public
getParentCategories(mixed $contentId[, mixed $type = 'all' ][, mixed $isPublishedOnly = false ][, mixed $isFrontendWrite = false ][, mixed $exclusion = array() ][, mixed $debug = false ]) : mixed
Parameters
- $contentId : mixed
- $type : mixed = 'all'
- $isPublishedOnly : mixed = false
- $isFrontendWrite : mixed = false
- $exclusion : mixed = array()
- $debug : mixed = false
Tags
getPrimaryCategory()
Retrieves the primary category for the blog post
public
getPrimaryCategory(mixed $id) : mixed
Parameters
- $id : mixed
Tags
getPrivateCategories()
Retrieve all private categories.
public
getPrivateCategories() : mixed
Tags
getSearchableItems()
Get searchable columns
public
getSearchableItems(mixed $query) : mixed
Parameters
- $query : mixed
Tags
getTotal()
Method to get the total nr of the categories
public
getTotal() : mixed
Tags
getTotalByBlogger()
Retrieves the total category by blogger
public
getTotalByBlogger([mixed $bloggerId = 0 ][, mixed $search = '' ]) : mixed
Parameters
- $bloggerId : mixed = 0
- $search : mixed = ''
Tags
getUsedCount()
Returns the number of blog entries created within this category.
public
getUsedCount(mixed $categoryId[, mixed $published = false ]) : mixed
Parameters
- $categoryId : mixed
- $published : mixed = false
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'
preload()
This method reduces the number of query hit on the server
public
preload([mixed $postIds = array() ]) : mixed
Parameters
- $postIds : mixed = array()
Tags
preloadActiveAuthors()
Preload authors
public
preloadActiveAuthors(mixed $catIds) : mixed
Parameters
- $catIds : mixed
Tags
preloadActiveAuthorsCount()
Preload authors count
public
preloadActiveAuthorsCount(mixed $catIds) : mixed
Parameters
- $catIds : mixed
Tags
preloadCategoryChilds()
This method reduces the number of query hit on the server
public
preloadCategoryChilds(mixed $catIds) : mixed
Parameters
- $catIds : mixed
Tags
preloadPosts()
This method reduces the number of query hit on the server
public
preloadPosts(mixed $catIds[, mixed $limit = null ]) : mixed
Parameters
- $catIds : mixed
- $limit : mixed = null
Tags
preloadUserSubscription()
This method reduces the number of query hit on the server
public
preloadUserSubscription(mixed $catIds, mixed $email) : mixed
Parameters
- $catIds : mixed
- $email : mixed
Tags
publish()
Method to publish or unpublish categories
public
publish(mixed &$categories[, mixed $publish = 1 ]) : mixed
Parameters
- $categories : mixed
- $publish : mixed = 1
Tags
searchCategories()
Search category
public
searchCategories(mixed $keyword[, mixed $options = array() ]) : mixed
Parameters
- $keyword : mixed
- $options : mixed = array()
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