EasyBlogModelTags
extends EasyBlogAdminModel
in package
Table of Contents
Properties
- $pagination : mixed
- $searchables : mixed
- $total : mixed
Methods
- __construct() : mixed
- _buildQueryByBlogger() : mixed
- Displays a list of tags created by the author
- _buildQueryByTagBlogs() : mixed
- ********************************************************************* These part of codes will used in tag clod tags.
- deleteAssociation() : mixed
- Delete blog posts association with the tags
- deleteAssociationByTagId() : mixed
- Delete blog posts association with the tags
- deleteUserTags() : mixed
- Delete tags from particular user
- getBloggerTags() : mixed
- Retrieves tags created by an author author
- getData() : mixed
- Generates the listing of tags at the back end
- getDefaultTags() : mixed
- Retrieve a default tags
- getDefaultTagsTitle() : mixed
- Retrieve a list of tags on the site
- getMissingMetaTags() : mixed
- Method to retrive those tags which missing tag metadata.
- getPagination() : mixed
- Generates pagination for the back end
- getPaginationByBlogger() : mixed
- getPaginationByTagBlogs() : mixed
- getSearchableItems() : mixed
- Get searchable columns
- getTagBlogs() : mixed
- getTagCloud() : mixed
- Generates a list of tags on the site
- getTagPrivateBlogCount() : mixed
- Get a private post count
- getTags() : mixed
- getTagsByBlogger() : mixed
- Retrieves the list of tags created by an author
- getTeamBlogCount() : mixed
- getTotalByBlogger() : mixed
- getTotalByTagBlogs() : mixed
- getTotalTags() : int
- Method to get total tags created so far iregardless the status.
- getUsedCount() : mixed
- Get post count for tag
- getUserStateFromRequest() : mixed
- Gets the value of a user state variable.
- isExist() : mixed
- preloadByPosts() : mixed
- publish() : array<string|int, mixed>
- Method to publish or unpublish tags
- publishItems() : mixed
- Method to publish tags
- removeDefault() : mixed
- Allows caller to remove default
- search() : mixed
- Searches for a tags given a specific keyword
- searchTag() : mixed
- setDefault() : mixed
- Allows caller to set the state of the default
- suggest() : mixed
- Searches for a tags given a specific keyword
- unpublishItems() : mixed
- Method to unpublish tags
- bindTable() : mixed
- implodeValues() : mixed
- populateState() : void
- Populate current stats
- setColumn() : mixed
- Set the row's state given the column
Properties
$pagination
public
mixed
$pagination
= \null
$searchables
public
mixed
$searchables
= array()
$total
public
mixed
$total
= \null
Methods
__construct()
public
__construct() : mixed
_buildQueryByBlogger()
Displays a list of tags created by the author
public
_buildQueryByBlogger(mixed $bloggerId[, mixed $sort = 'title' ]) : mixed
Parameters
- $bloggerId : mixed
- $sort : mixed = 'title'
Tags
_buildQueryByTagBlogs()
********************************************************************* These part of codes will used in tag clod tags.
public
_buildQueryByTagBlogs() : mixed
deleteAssociation()
Delete blog posts association with the tags
public
deleteAssociation(mixed $postId) : mixed
Parameters
- $postId : mixed
Tags
deleteAssociationByTagId()
Delete blog posts association with the tags
public
deleteAssociationByTagId(mixed $tagId) : mixed
Parameters
- $tagId : mixed
Tags
deleteUserTags()
Delete tags from particular user
public
deleteUserTags(mixed $userId) : mixed
Parameters
- $userId : mixed
Tags
getBloggerTags()
Retrieves tags created by an author author
public
getBloggerTags([mixed $authorId = null ][, mixed $sort = 'asc' ][, mixed $search = '' ][, mixed $limit = null ]) : mixed
Parameters
- $authorId : mixed = null
- $sort : mixed = 'asc'
- $search : mixed = ''
- $limit : mixed = null
Tags
getData()
Generates the listing of tags at the back end
public
getData() : mixed
Tags
getDefaultTags()
Retrieve a default tags
public
getDefaultTags() : mixed
Tags
getDefaultTagsTitle()
Retrieve a list of tags on the site
public
getDefaultTagsTitle() : mixed
Tags
getMissingMetaTags()
Method to retrive those tags which missing tag metadata.
public
getMissingMetaTags() : mixed
Tags
getPagination()
Generates pagination for the back end
public
getPagination() : mixed
Tags
getPaginationByBlogger()
public
getPaginationByBlogger(mixed $bloggerId[, mixed $sort = 'title' ]) : mixed
Parameters
- $bloggerId : mixed
- $sort : mixed = 'title'
getPaginationByTagBlogs()
public
getPaginationByTagBlogs() : mixed
getSearchableItems()
Get searchable columns
public
getSearchableItems(mixed $query) : mixed
Parameters
- $query : mixed
Tags
getTagBlogs()
public
getTagBlogs() : mixed
getTagCloud()
Generates a list of tags on the site
public
getTagCloud([mixed $limit = '' ][, mixed $order = 'title' ][, mixed $sort = 'asc' ][, mixed $checkAccess = false ][, mixed $search = '' ][, mixed $categoryBased = false ][, mixed $usePagination = false ]) : mixed
Parameters
- $limit : mixed = ''
- $order : mixed = 'title'
- $sort : mixed = 'asc'
- $checkAccess : mixed = false
- $search : mixed = ''
- $categoryBased : mixed = false
- $usePagination : mixed = false
Tags
getTagPrivateBlogCount()
Get a private post count
public
getTagPrivateBlogCount(mixed $tagId) : mixed
Parameters
- $tagId : mixed
Tags
getTags()
public
getTags([mixed $count = "" ]) : mixed
Parameters
- $count : mixed = ""
getTagsByBlogger()
Retrieves the list of tags created by an author
public
getTagsByBlogger(mixed $bloggerId[, mixed $usePagination = true ][, mixed $sort = 'title' ]) : mixed
Parameters
- $bloggerId : mixed
- $usePagination : mixed = true
- $sort : mixed = 'title'
Tags
getTeamBlogCount()
public
getTeamBlogCount(mixed $tagId) : mixed
Parameters
- $tagId : mixed
getTotalByBlogger()
public
getTotalByBlogger(mixed $bloggerId[, mixed $sort = 'title' ]) : mixed
Parameters
- $bloggerId : mixed
- $sort : mixed = 'title'
getTotalByTagBlogs()
public
getTotalByTagBlogs() : mixed
getTotalTags()
Method to get total tags created so far iregardless the status.
public
getTotalTags([mixed $userId = 0 ]) : int
Parameters
- $userId : mixed = 0
Tags
Return values
intgetUsedCount()
Get post count for tag
public
getUsedCount(mixed $tagId[, mixed $published = false ]) : mixed
Parameters
- $tagId : 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'
isExist()
public
isExist(mixed $tagName[, mixed $excludeTagIds = '0' ]) : mixed
Parameters
- $tagName : mixed
- $excludeTagIds : mixed = '0'
preloadByPosts()
public
preloadByPosts(array<string|int, mixed> $postIds) : mixed
Parameters
- $postIds : array<string|int, mixed>
publish()
Method to publish or unpublish tags
public
publish(mixed &$tags[, mixed $publish = 1 ]) : array<string|int, mixed>
Parameters
- $tags : mixed
- $publish : mixed = 1
Tags
Return values
array<string|int, mixed>publishItems()
Method to publish tags
public
publishItems(mixed $ids) : mixed
Parameters
- $ids : mixed
Tags
removeDefault()
Allows caller to remove default
public
removeDefault(mixed $ids) : mixed
Parameters
- $ids : mixed
Tags
search()
Searches for a tags given a specific keyword
public
search(mixed $keyword[, mixed $wordSearch = true ][, mixed $limit = null ]) : mixed
Parameters
- $keyword : mixed
- $wordSearch : mixed = true
- $limit : mixed = null
Tags
searchTag()
public
searchTag(mixed $title) : mixed
Parameters
- $title : mixed
setDefault()
Allows caller to set the state of the default
public
setDefault(mixed $ids) : mixed
Parameters
- $ids : mixed
Tags
suggest()
Searches for a tags given a specific keyword
public
suggest(mixed $keyword[, mixed $limit = null ]) : mixed
Parameters
- $keyword : mixed
- $limit : mixed = null
Tags
unpublishItems()
Method to unpublish tags
public
unpublishItems(mixed $ids) : mixed
Parameters
- $ids : mixed
Tags
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
Tags
setColumn()
Set the row's state given the column
private
setColumn(mixed $ids, mixed $column[, mixed $state = true ]) : mixed
Parameters
- $ids : mixed
- $column : mixed
- $state : mixed = true