Joomla CMS  3.8.5 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.8.5 et du framework Joomla Platform intégré
Référence de la classe FieldsTableGroup
+ Graphe d'héritage de FieldsTableGroup:

Fonctions membres publiques

 __construct ($db=null)
 
 bind ($src, $ignore='')
 
 check ()
 

Fonctions membres protégées

 _getAssetName ()
 
 _getAssetTitle ()
 
 _getAssetParentId (JTable $table=null, $id=null)
 

Description détaillée

Groups Table

Depuis
3.7.0

Documentation des constructeurs et destructeur

◆ __construct()

__construct (   $db = null)

Class constructor.

Paramètres
JDatabaseDriver$dbJDatabaseDriver object.
Depuis
3.7.0

Références $db.

Documentation des fonctions membres

◆ _getAssetName()

_getAssetName ( )
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.

Renvoie
string
Depuis
3.7.0

Références $component.

◆ _getAssetParentId()

_getAssetParentId ( JTable  $table = null,
  $id = null 
)
protected

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.

Paramètres
JTable$tableA JTable object for the asset parent.
integer$idId to look up
Renvoie
integer
Depuis
3.7.0

Références $assetId, $component, $db, $id, et $query.

◆ _getAssetTitle()

_getAssetTitle ( )
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.

Renvoie
string The string to use as the title in the asset table.

3.7.0

Références $title.

◆ bind()

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.

Paramètres
mixed$srcAn associative array or object to bind to the JTable instance.
mixed$ignoreAn optional array or space separated list of properties to ignore while binding.
Renvoie
boolean True on success.
Depuis
3.7.0
Exceptions
InvalidArgumentException

Références Registry\loadArray().

◆ check()

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.

Renvoie
boolean True if the instance is sane and able to be stored in the database.

3.7.0

Références $date, $user, et title.


La documentation de cette classe a été générée à partir du fichier suivant :