EasyBlogTableCategory
extends EasyBlogTable
in package
Table of Contents
Properties
- $alias : mixed
- $autopost : mixed
- $avatar : mixed
- $created : mixed
- $created_by : mixed
- $default : mixed
- $description : mixed
- $id : mixed
- $language : mixed
- $level : mixed
- $lft : mixed
- $ordering : mixed
- $params : mixed
- $parent_id : mixed
- $private : mixed
- $published : mixed
- $repost_autoposting : mixed
- $repost_autoposting_interval : mixed
- $rgt : mixed
- $status : mixed
- $theme : mixed
- $title : mixed
- $_supportNullValue : mixed
Methods
- __construct() : mixed
- addMeta() : mixed
- add / update meta for category
- afterSave() : mixed
- Run tasks after saving a category
- aliasExists() : mixed
- Determines if an alias already exists
- bind() : mixed
- Overrides parent's bind method
- bindCustomFieldGroup() : mixed
- Bind custom field group to the category
- canDelete() : mixed
- Determine if the category can be deleted from the site
- checkPrivacy() : mixed
- delete() : bool
- Overrides parent's delete method to add our own logic.
- deleteACL() : mixed
- For categories acl to delete the category acl settings.
- duplicate() : mixed
- Duplicate the current category
- generateDefaultParams() : mixed
- Generates a default params for the category
- getActiveAuthors() : mixed
- Retrieve a list of active authors for this category
- getActiveAuthorsCount() : mixed
- Retrieve list of count on active authors for this category
- getActiveBloggers() : mixed
- Deprecated. Use @getActiveAuthors() instead
- getAlias() : mixed
- Retrieves alias for the category
- getAtom() : mixed
- getAvatar() : mixed
- Retrieve categories avatar
- getChildCount() : mixed
- Retrieves the total number of subcategories this category has.
- getCount() : mixed
- Retrieves the total number of posts in this category
- getCustomFieldGroup() : mixed
- Retrieves the custom field group for this category
- getCustomFields() : mixed
- Retrieves custom fields for this category
- getDBO() : mixed
- Retrieves the database object
- getDefaultParams() : mixed
- Retrieve a list of tags that is associated with this category
- getDefaultPostCover() : mixed
- Retrieve categories default post cover
- getDefaultTags() : mixed
- Retrieve a list of tags that is associated with this category
- getDescription() : mixed
- Retrieves description of the category
- getEditPermalink() : mixed
- Retrieves category dashbaord edit link.
- getExternalPermalink() : mixed
- Retrieves the external permalink for this blog post
- getGroupAssignedACL() : mixed
- For categories acl that have group assigned permissions.
- getInstance() : mixed
- Tired of fixing conflicts with JTable::getInstance . We'll overload their method here.
- getLeft() : mixed
- getMenuParams() : mixed
- Retrieves the parameters for the menu
- getMetaId() : mixed
- getOrdering() : mixed
- getParam() : mixed
- Retrieve a specific parameter value
- getParams() : mixed
- Generic method to retrive raw json params from the table
- getParent() : mixed
- Retrieves the parent category
- getPermalink() : mixed
- Retrieves the permalink for this category
- getPostCount() : mixed
- Use getCount instead
- getRSS() : mixed
- Retrieve rss link for the category
- getRssLink() : mixed
- Retrieves rss link for the category
- getTitle() : mixed
- Retrieves the translated title
- getUniqueAlias() : mixed
- Retrieves a unique alias for the category
- getUserAssignedACL() : mixed
- For categories that have user assigned permissions instead of user groups
- hasCustomFields() : mixed
- Determines if there are any fields binded to the category
- isDefault() : mixed
- Determines if this category is the default category
- isNotAssigned() : mixed
- Determines if this category is the public category
- isPrimary() : mixed
- Determines if this category is the primary category for the blog post
- isPublished() : mixed
- Determines if this category is published or not
- move() : mixed
- moveLftToLastOf() : bool
- Update the lft value to a particular parent's lft
- normalizeCatPermalink() : mixed
- Normalize the non sef link whether need to include the lang query string or not
- rebuildOrdering() : mixed
- removeACL() : bool
- Remove associated ACL items for this category
- removeAvatar() : mixed
- Removes a category avatar
- removeFieldGroup() : mixed
- Bind custom field group to the category
- removePostCover() : mixed
- Remove category default post cover
- reset() : void
- Method to reset class properties to the defaults set in the class definition. It will ignore the primary key as well as any private class properties.
- saveACL() : mixed
- For categories acl to resave the category acl settings.
- saveDefaultPostCover() : mixed
- Method to save the default cover for the posts of the category
- setDefault() : mixed
- Sets this category as the default category
- store() : mixed
- Override parent's implementation of store
- toArray() : mixed
- Converts a table layer into an array
- updateLeft() : mixed
- updateOrdering() : mixed
- updateRight() : mixed
- uploadAvatar() : mixed
- Allows caller to upload an avatar
Properties
$alias
public
mixed
$alias
= ''
$autopost
public
mixed
$autopost
= \null
$avatar
public
mixed
$avatar
= \null
$created
public
mixed
$created
= \null
$created_by
public
mixed
$created_by
= \null
$default
public
mixed
$default
= \null
$description
public
mixed
$description
= \null
$id
public
mixed
$id
= ''
$language
public
mixed
$language
= ''
$level
public
mixed
$level
= \null
$lft
public
mixed
$lft
= \null
$ordering
public
mixed
$ordering
= \null
$params
public
mixed
$params
= \null
$parent_id
public
mixed
$parent_id
= \null
$private
public
mixed
$private
= \null
$published
public
mixed
$published
= \null
$repost_autoposting
public
mixed
$repost_autoposting
= \null
$repost_autoposting_interval
public
mixed
$repost_autoposting_interval
= \null
$rgt
public
mixed
$rgt
= \null
$status
public
mixed
$status
= \null
$theme
public
mixed
$theme
= \null
$title
public
mixed
$title
= ''
$_supportNullValue
protected
mixed
$_supportNullValue
= true
Methods
__construct()
public
__construct(mixed &$db) : mixed
Parameters
- $db : mixed
addMeta()
add / update meta for category
public
addMeta() : mixed
Tags
afterSave()
Run tasks after saving a category
public
afterSave() : mixed
Tags
aliasExists()
Determines if an alias already exists
public
aliasExists([mixed $alias = '' ]) : mixed
Parameters
- $alias : mixed = ''
Tags
bind()
Overrides parent's bind method
public
bind(mixed $data[, mixed $ignore = [] ]) : mixed
Parameters
- $data : mixed
- $ignore : mixed = []
Tags
bindCustomFieldGroup()
Bind custom field group to the category
public
bindCustomFieldGroup([mixed $groupId = '' ]) : mixed
Parameters
- $groupId : mixed = ''
Tags
canDelete()
Determine if the category can be deleted from the site
public
canDelete() : mixed
Tags
checkPrivacy()
public
checkPrivacy() : mixed
delete()
Overrides parent's delete method to add our own logic.
public
delete([mixed $pk = null ]) : bool
Parameters
- $pk : mixed = null
Return values
booldeleteACL()
For categories acl to delete the category acl settings.
public
deleteACL([mixed $aclId = '' ]) : mixed
Parameters
- $aclId : mixed = ''
Tags
duplicate()
Duplicate the current category
public
duplicate() : mixed
Tags
generateDefaultParams()
Generates a default params for the category
public
generateDefaultParams([mixed $additionalParams = [] ]) : mixed
Parameters
- $additionalParams : mixed = []
Tags
getActiveAuthors()
Retrieve a list of active authors for this category
public
getActiveAuthors() : mixed
Tags
getActiveAuthorsCount()
Retrieve list of count on active authors for this category
public
getActiveAuthorsCount() : mixed
Tags
getActiveBloggers()
Deprecated. Use @getActiveAuthors() instead
public
getActiveBloggers() : mixed
getAlias()
Retrieves alias for the category
public
getAlias() : mixed
Tags
getAtom()
public
getAtom() : mixed
getAvatar()
Retrieve categories avatar
public
getAvatar() : mixed
Tags
getChildCount()
Retrieves the total number of subcategories this category has.
public
getChildCount([mixed $includePermission = false ]) : mixed
Parameters
- $includePermission : mixed = false
Tags
getCount()
Retrieves the total number of posts in this category
public
getCount([mixed $bloggerId = '' ]) : mixed
Parameters
- $bloggerId : mixed = ''
Tags
getCustomFieldGroup()
Retrieves the custom field group for this category
public
getCustomFieldGroup() : mixed
Tags
Return values
mixed —false if category is not associated with the group
getCustomFields()
Retrieves custom fields for this category
public
getCustomFields([mixed $access = 'write' ]) : mixed
Parameters
- $access : mixed = 'write'
Tags
getDBO()
Retrieves the database object
public
getDBO() : mixed
Tags
getDefaultParams()
Retrieve a list of tags that is associated with this category
public
getDefaultParams() : mixed
Tags
getDefaultPostCover()
Retrieve categories default post cover
public
getDefaultPostCover([mixed $root = true ][, mixed $preventCache = false ]) : mixed
Parameters
- $root : mixed = true
- $preventCache : mixed = false
Tags
getDefaultTags()
Retrieve a list of tags that is associated with this category
public
getDefaultTags() : mixed
Tags
getDescription()
Retrieves description of the category
public
getDescription() : mixed
Tags
getEditPermalink()
Retrieves category dashbaord edit link.
public
getEditPermalink([mixed $xhtml = true ]) : mixed
Parameters
- $xhtml : mixed = true
Tags
getExternalPermalink()
Retrieves the external permalink for this blog post
public
getExternalPermalink([mixed $format = null ][, mixed $withlimitstart = false ]) : mixed
Parameters
- $format : mixed = null
- $withlimitstart : mixed = false
Tags
getGroupAssignedACL()
For categories acl that have group assigned permissions.
public
getGroupAssignedACL() : mixed
Tags
getInstance()
Tired of fixing conflicts with JTable::getInstance . We'll overload their method here.
public
static getInstance(string $type[, string $prefix = 'JTable' ][, array<string|int, mixed> $config = [] ]) : mixed
Parameters
- $type : string
-
The type (name) of the JTable class to get an instance of.
- $prefix : string = 'JTable'
-
An optional prefix for the table class name.
- $config : array<string|int, mixed> = []
-
An optional array of configuration values for the JTable object.
Tags
Return values
mixed —A JTable object if found or boolean false if one could not be found.
getLeft()
public
getLeft([mixed $parent = 0 ]) : mixed
Parameters
- $parent : mixed = 0
getMenuParams()
Retrieves the parameters for the menu
public
getMenuParams() : mixed
Tags
getMetaId()
public
getMetaId() : mixed
getOrdering()
public
getOrdering([mixed $parent = 0 ]) : mixed
Parameters
- $parent : mixed = 0
getParam()
Retrieve a specific parameter value
public
getParam(mixed $key[, mixed $default = null ]) : mixed
Parameters
- $key : mixed
- $default : mixed = null
Tags
getParams()
Generic method to retrive raw json params from the table
public
final getParams() : mixed
Tags
getParent()
Retrieves the parent category
public
getParent() : mixed
Tags
getPermalink()
Retrieves the permalink for this category
public
getPermalink([mixed $xhtml = true ]) : mixed
Parameters
- $xhtml : mixed = true
Tags
getPostCount()
Use getCount instead
public
getPostCount() : mixed
Tags
getRSS()
Retrieve rss link for the category
public
getRSS() : mixed
getRssLink()
Retrieves rss link for the category
public
getRssLink() : mixed
Tags
getTitle()
Retrieves the translated title
public
getTitle() : mixed
Tags
getUniqueAlias()
Retrieves a unique alias for the category
public
getUniqueAlias([mixed $alias = '' ]) : mixed
Parameters
- $alias : mixed = ''
Tags
getUserAssignedACL()
For categories that have user assigned permissions instead of user groups
public
getUserAssignedACL() : mixed
Tags
hasCustomFields()
Determines if there are any fields binded to the category
public
hasCustomFields() : mixed
Tags
isDefault()
Determines if this category is the default category
public
isDefault() : mixed
Tags
isNotAssigned()
Determines if this category is the public category
public
isNotAssigned() : mixed
Tags
isPrimary()
Determines if this category is the primary category for the blog post
public
isPrimary() : mixed
Tags
isPublished()
Determines if this category is published or not
public
isPublished() : mixed
Tags
move()
public
move(mixed $direction[, mixed $where = '' ]) : mixed
Parameters
- $direction : mixed
- $where : mixed = ''
moveLftToLastOf()
Update the lft value to a particular parent's lft
public
moveLftToLastOf(mixed $parentId) : bool
Parameters
- $parentId : mixed
Return values
boolnormalizeCatPermalink()
Normalize the non sef link whether need to include the lang query string or not
public
normalizeCatPermalink() : mixed
Tags
rebuildOrdering()
public
rebuildOrdering([mixed $parentId = null ][, mixed $leftId = 0 ]) : mixed
Parameters
- $parentId : mixed = null
- $leftId : mixed = 0
removeACL()
Remove associated ACL items for this category
public
removeACL() : bool
Tags
Return values
boolremoveAvatar()
Removes a category avatar
public
removeAvatar([mixed $update = false ]) : mixed
Parameters
- $update : mixed = false
Tags
removeFieldGroup()
Bind custom field group to the category
public
removeFieldGroup() : mixed
Tags
removePostCover()
Remove category default post cover
public
removePostCover([mixed $update = false ]) : mixed
Parameters
- $update : mixed = false
Tags
reset()
Method to reset class properties to the defaults set in the class definition. It will ignore the primary key as well as any private class properties.
public
reset() : void
Tags
saveACL()
For categories acl to resave the category acl settings.
public
saveACL(mixed $post) : mixed
Parameters
- $post : mixed
Tags
saveDefaultPostCover()
Method to save the default cover for the posts of the category
public
saveDefaultPostCover(mixed $file) : mixed
Parameters
- $file : mixed
Tags
setDefault()
Sets this category as the default category
public
setDefault() : mixed
Tags
store()
Override parent's implementation of store
public
store([mixed $updateNulls = false ]) : mixed
Parameters
- $updateNulls : mixed = false
Tags
toArray()
Converts a table layer into an array
public
toArray() : mixed
Tags
updateLeft()
public
updateLeft(mixed $left[, mixed $limit = 0 ]) : mixed
Parameters
- $left : mixed
- $limit : mixed = 0
updateOrdering()
public
updateOrdering() : mixed
updateRight()
public
updateRight(mixed $right[, mixed $limit = 0 ]) : mixed
Parameters
- $right : mixed
- $limit : mixed = 0
uploadAvatar()
Allows caller to upload an avatar
public
uploadAvatar([mixed $inputName = 'Filedata' ]) : mixed
Parameters
- $inputName : mixed = 'Filedata'