Documentation

Table extends JTable
in package

Table of Contents

Properties

$_supportNullValue  : mixed

Methods

__construct()  : mixed
bind()  : mixed
Bind the table properties
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
Retrieves the translated title
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

Properties

$_supportNullValue

protected mixed $_supportNullValue = true

Methods

__construct()

public __construct(mixed $table, mixed $key, mixed $db[, mixed $dispatcher = null ]) : mixed
Parameters
$table : mixed
$key : mixed
$db : mixed
$dispatcher : mixed = null

bind()

Bind the table properties

public bind(mixed $src[, mixed $ignore = [] ]) : mixed
Parameters
$src : mixed
$ignore : mixed = []
Tags
since
1.1.0
access

public

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
link
http://docs.joomla.org/JTable/getInstance
since
11.1
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
since
1.1.0
access

public

getTitle()

Retrieves the translated title

public getTitle() : mixed
Tags
since
1.1.0
access

public

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
Tags
since
1.1.0
access

public

toArray()

Converts a table layer into an array

public toArray() : mixed
Tags
since
1.1.0
access

public


        
On this page

Search results