EasyBlogTableFieldGroup
extends EasyBlogTable
in package
Table of Contents
Properties
- $created : mixed
- $description : mixed
- $id : mixed
- $params : mixed
- $read : mixed
- $state : mixed
- $title : mixed
- $write : mixed
- $_supportNullValue : mixed
Methods
- __construct() : mixed
- Constructor for this class.
- bind() : mixed
- Bind the table properties
- delete() : mixed
- Deletes a custom field group
- getAcl() : mixed
- getDBO() : mixed
- Retrieves the database object
- 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
- getTitle() : mixed
- Retrieve the group title
- getTotalFields() : mixed
- Retrieves the total number of fields
- hasValues() : mixed
- Determines if there are any values for fields within this group for a particular post.
- publish() : mixed
- Publishes a field group
- 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.
- store() : mixed
- On Joomla 4, if table object contains array or objects, storing is problematic unlike Joomla 3.
- toArray() : mixed
- Converts a table layer into an array
- unpublish() : mixed
- Unpublishes a field group
Properties
$created
public
mixed
$created
= \null
$description
public
mixed
$description
= \null
$id
public
mixed
$id
= \null
$params
public
mixed
$params
= \null
$read
public
mixed
$read
= ''
$state
public
mixed
$state
= \null
$title
public
mixed
$title
= ''
$write
public
mixed
$write
= ''
$_supportNullValue
protected
mixed
$_supportNullValue
= true
Methods
__construct()
Constructor for this class.
public
__construct(object &$db) : mixed
Parameters
- $db : object
Tags
bind()
Bind the table properties
public
bind(mixed $src[, mixed $ignore = [] ]) : mixed
Parameters
- $src : mixed
- $ignore : mixed = []
Tags
delete()
Deletes a custom field group
public
delete([mixed $pk = null ]) : mixed
Parameters
- $pk : mixed = null
Tags
getAcl()
public
getAcl(mixed $type) : mixed
Parameters
- $type : mixed
getDBO()
Retrieves the database object
public
getDBO() : 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.
getParams()
Generic method to retrive raw json params from the table
public
final getParams() : mixed
Tags
getTitle()
Retrieve the group title
public
getTitle() : mixed
Tags
getTotalFields()
Retrieves the total number of fields
public
getTotalFields() : mixed
Tags
hasValues()
Determines if there are any values for fields within this group for a particular post.
public
hasValues(EasyBlogPost $post) : mixed
Parameters
- $post : EasyBlogPost
Tags
publish()
Publishes a field group
public
publish([mixed $pks = null ][, mixed $state = 1 ][, mixed $userId = 0 ]) : mixed
Parameters
- $pks : mixed = null
- $state : mixed = 1
- $userId : mixed = 0
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
store()
On Joomla 4, if table object contains array or objects, storing is problematic unlike Joomla 3.
public
store([mixed $updateNulls = false ]) : mixed
To fix Joomla 4 storing issues, we override the store behavior and normalize the fields accordingly.
Parameters
- $updateNulls : mixed = false
toArray()
Converts a table layer into an array
public
toArray() : mixed
Tags
unpublish()
Unpublishes a field group
public
unpublish() : mixed