Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__construct ($db=null) | |
bind ($src, $ignore='') | |
check () | |
store ($updateNulls=true) | |
Fonctions membres publiques hérités de Table | |
__construct ($table, $key, DatabaseDriver $db, DispatcherInterface $dispatcher=null) | |
getFields ($reload=false) | |
appendPrimaryKeys ($query, $pk=null) | |
getTableName () | |
getKeyName ($multiple=false) | |
getId () | |
getDbo () | |
setDbo (DatabaseDriver $db) | |
setRules ($input) | |
getRules () | |
reset () | |
bind ($src, $ignore=array()) | |
load ($keys=null, $reset=true) | |
check () | |
save ($src, $orderingFilter='', $ignore='') | |
checkOut ($userId, $pk=null) | |
checkIn ($pk=null) | |
hasPrimaryKey () | |
hit ($pk=null) | |
isCheckedOut ($with=0, $against=null) | |
getNextOrder ($where='') | |
getPrimaryKey (array $keys=array()) | |
reorder ($where='') | |
move ($delta, $where='') | |
publish ($pks=null, $state=1, $userId=0) | |
getColumnAlias ($column) | |
setColumnAlias ($column, $columnAlias) | |
hasField ($key) | |
Fonctions membres publiques hérités de CMSObject | |
__construct ($properties=null) | |
__toString () | |
def ($property, $default=null) | |
get ($property, $default=null) | |
getProperties ($public=true) | |
getError ($i=null, $toString=true) | |
getErrors () | |
set ($property, $value=null) | |
setProperties ($properties) | |
setError ($error) | |
Fonctions membres publiques hérités de TableInterface | |
delete ($pk=null) | |
getKeyName () | |
Fonctions membres publiques hérités de DispatcherAwareInterface | |
setDispatcher (DispatcherInterface $dispatcher) | |
Fonctions membres protégées | |
_getAssetName () | |
_getAssetTitle () | |
_getAssetParentId (Table $table=null, $id=null) | |
Fonctions membres protégées hérités de Table | |
_getAssetName () | |
_getAssetTitle () | |
_lock () | |
_unlock () | |
Attributs protégés | |
$_supportNullValue = true | |
Attributs protégés hérités de Table | |
$_tbl = '' | |
$_tbl_key = '' | |
$_tbl_keys = array() | |
$_db | |
$_trackAssets = false | |
$_rules | |
$_locked = false | |
$_autoincrement = true | |
$_columnAlias = array() | |
$_jsonEncode = array() | |
$_supportNullValue = false | |
Attributs protégés hérités de CMSObject | |
$_errors = array() | |
Membres hérités additionnels | |
Fonctions membres publiques statiques hérités de Table | |
static | getInstance ($type, $prefix='JTable', $config=array()) |
static | addIncludePath ($path=null) |
Champs de données hérités de Table | |
$typeAlias = null | |
Groups Table
__construct | ( | $db = null | ) |
Class constructor.
DatabaseDriver | $db | DatabaseDriver object. |
Références $db, et Symfony\Contracts\Service\__construct().
|
protected |
Method to compute the default name of the asset. The default name is in the form table_name.id where id is the value of the primary key of the table.
Références $component.
Method to get the parent asset under which to register this one. By default, all assets are registered to the ROOT node with ID, which will default to 1 if none exists. The extended class can define a table and id to lookup. If the asset does not exist it will be created.
Références $assetId, $component, $db, $id, $query, et Joomla\CMS\MVC\Model\getDbo().
|
protected |
Method to return the title to use for the asset table. In tracking the assets a title is kept for each asset so that there is some context available in a unified access manager. Usually this would just return $this->title or $this->name or whatever is being used for the primary name of the row. If this method is not overridden, the asset name is used.
Références $title.
bind | ( | $src, | |
$ignore = '' |
|||
) |
Method to bind an associative array or object to the JTable instance.This method only binds properties that are publicly accessible and optionally takes an array of properties to ignore when binding.
mixed | $src | An associative array or object to bind to the JTable instance. |
mixed | $ignore | An optional array or space separated list of properties to ignore while binding. |
Implémente TableInterface.
check | ( | ) |
Method to perform sanity checks on the JTable instance properties to ensure they are safe to store in the database. Child classes should override this method to make sure the data they are storing in the database is safe and as expected before storage.
Implémente TableInterface.
Références $date, $user, Text\_(), Factory\getDate(), Factory\getUser(), et null.
store | ( | $updateNulls = true | ) |
Overloaded store function
boolean | $updateNulls | True to update fields even if they are null. |
Implémente TableInterface.
|
protected |