EasyBlogTableTag
extends EasyBlogTable
in package
Table of Contents
Properties
- $alias : mixed
- $created : mixed
- $created_by : mixed
- $default : mixed
- $description : mixed
- $id : mixed
- $language : mixed
- $ordering : mixed
- $params : mixed
- $published : mixed
- $status : mixed
- $title : mixed
- $_supportNullValue : mixed
Methods
- __construct() : mixed
- addMeta() : mixed
- add / update meta for tag
- aliasExists() : mixed
- Determines if the alias exists
- bind() : mixed
- Overrides parent's bind method to add our own logic.
- canDelete() : mixed
- Determines if a user can delete this tag
- canManage() : mixed
- Determines if a user can manage this tag
- delete() : mixed
- Overrides parent's delete method to add our own logic.
- deletePostTag() : mixed
- Delete all associated blog posts with this tag
- exists() : mixed
- Determines if the tag already exists
- getAlias() : mixed
- Retrieves the alias of a tag
- getDBO() : mixed
- Retrieves the database object
- getDefaultParams() : mixed
- Retrieve a list of tags that is associated with this tag
- getDescription() : mixed
- Gets the translated tag description
- getExternalPermalink() : mixed
- Retrieves the external permalink for this blog post
- getInstance() : mixed
- Tired of fixing conflicts with JTable::getInstance . We'll overload their method here.
- getParams() : mixed
- Generic method to retrive raw json params from the table
- getPermalink() : mixed
- Gets the tag permalink
- getPostCount() : mixed
- Retrieves the number of posts that are associated with this tag.
- getRssLink() : mixed
- Retrieves rss link for the tag
- getTitle() : mixed
- Gets the translated tag title
- load() : mixed
- Loads a tag
- publishItem() : mixed
- Publishes this tag
- removeDefault() : mixed
- Removes a tag from default
- 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.
- setDefault() : mixed
- Sets a tag as default
- store() : mixed
- Saves a tag on the site
- toArray() : mixed
- Converts a table layer into an array
- unpublishItem() : mixed
- Unpublishes this tag
Properties
$alias
public
mixed
$alias
= ''
$created
public
mixed
$created
= \null
$created_by
public
mixed
$created_by
= \null
$default
public
mixed
$default
= \null
$description
public
mixed
$description
= ''
$id
public
mixed
$id
= \null
$language
public
mixed
$language
= ''
$ordering
public
mixed
$ordering
= \null
$params
public
mixed
$params
= \null
$published
public
mixed
$published
= \null
$status
public
mixed
$status
= \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 tag
public
addMeta() : mixed
Tags
aliasExists()
Determines if the alias exists
public
aliasExists() : mixed
Tags
bind()
Overrides parent's bind method to add our own logic.
public
bind(mixed $data[, mixed $ignore = [] ]) : mixed
Parameters
- $data : mixed
- $ignore : mixed = []
Tags
canDelete()
Determines if a user can delete this tag
public
canDelete([mixed $viewerId = null ]) : mixed
Parameters
- $viewerId : mixed = null
Tags
canManage()
Determines if a user can manage this tag
public
canManage([mixed $viewerId = null ]) : mixed
Parameters
- $viewerId : mixed = null
Tags
delete()
Overrides parent's delete method to add our own logic.
public
delete([mixed $pk = null ]) : mixed
Parameters
- $pk : mixed = null
Tags
deletePostTag()
Delete all associated blog posts with this tag
public
deletePostTag() : mixed
Tags
exists()
Determines if the tag already exists
public
exists(mixed $title[, mixed $isNew = true ]) : mixed
Parameters
- $title : mixed
- $isNew : mixed = true
Tags
getAlias()
Retrieves the alias of a tag
public
getAlias() : mixed
Tags
getDBO()
Retrieves the database object
public
getDBO() : mixed
Tags
getDefaultParams()
Retrieve a list of tags that is associated with this tag
public
getDefaultParams() : mixed
Tags
getDescription()
Gets the translated tag description
public
getDescription() : mixed
Tags
getExternalPermalink()
Retrieves the external permalink for this blog post
public
getExternalPermalink([mixed $format = null ]) : mixed
Parameters
- $format : mixed = null
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.
getParams()
Generic method to retrive raw json params from the table
public
final getParams() : mixed
Tags
getPermalink()
Gets the tag permalink
public
getPermalink([mixed $xhtml = true ]) : mixed
Parameters
- $xhtml : mixed = true
Tags
getPostCount()
Retrieves the number of posts that are associated with this tag.
public
getPostCount() : mixed
Tags
getRssLink()
Retrieves rss link for the tag
public
getRssLink() : mixed
Tags
getTitle()
Gets the translated tag title
public
getTitle() : mixed
Tags
load()
Loads a tag
public
load([mixed $id = null ][, mixed $loadByTitle = false ][, mixed $debug = false ]) : mixed
Parameters
- $id : mixed = null
- $loadByTitle : mixed = false
- $debug : mixed = false
Tags
publishItem()
Publishes this tag
public
publishItem() : mixed
Tags
removeDefault()
Removes a tag from default
public
removeDefault() : mixed
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
setDefault()
Sets a tag as default
public
setDefault() : mixed
Tags
store()
Saves a tag on the site
public
store([mixed $updateNulls = false ]) : mixed
Parameters
- $updateNulls : mixed = false
Tags
toArray()
Converts a table layer into an array
public
toArray() : mixed
Tags
unpublishItem()
Unpublishes this tag
public
unpublishItem() : mixed