Joomla CMS
3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
|
Fonctions membres publiques | |
onBeforeStore ($updateNulls, $tableKey) | |
onAfterStore (&$result) | |
onBeforeDelete ($pk) | |
setNewTags ($newTags, $replaceTags) | |
Fonctions membres publiques hérités de AbstractObserver | |
__construct (TableInterface $table) | |
onBeforeLoad ($keys, $reset) | |
onAfterLoad (&$result, $row) | |
onBeforeStore ($updateNulls, $tableKey) | |
onAfterStore (&$result) | |
onBeforeDelete ($pk) | |
onAfterDelete ($pk) | |
Fonctions membres publiques statiques | |
static | createObserver (\JObservableInterface $observableObject, $params=array()) |
Fonctions membres publiques statiques hérités de JObserverInterface | |
static | createObserver (JObservableInterface $observableObject, $params=array()) |
Attributs publics statiques | |
static | $_myTableForPregreplaceOnly |
Fonctions membres protégées | |
parseTypeAlias () | |
Attributs protégés | |
$tagsHelper | |
$typeAliasPattern = null | |
$newTags = false | |
$replaceTags = true | |
Attributs protégés hérités de AbstractObserver | |
$table | |
Abstract class defining methods that can be implemented by an Observer class of a Table class (which is an Observable). Attaches $this Observer to the $table in the constructor. The classes extending this class should not be instantiated directly, as they are automatically instanciated by the
|
static |
Creates the associated observer instance and attaches it to the $observableObject Creates the associated tags helper class instance $typeAlias can be of the form "{variableName}.type", automatically replacing {variableName} with table-instance variables variableName
\JObservableInterface | $observableObject | The subject object to be observed |
array | $params | ( 'typeAlias' => $typeAlias ) |
Références $params.
Référencé par Category\__construct(), et Content\__construct().
onAfterStore | ( | & | $result | ) |
Post-processor for $table->store($updateNulls) You can change optional params newTags and replaceTags of tagsHelper with method setNewTagsToAdd
boolean | &$result | The result of the load |
onBeforeDelete | ( | $pk | ) |
Pre-processor for $table->delete($pk)
mixed | $pk | An optional primary key value to delete. If not set the instance property value is used. |
onBeforeStore | ( | $updateNulls, | |
$tableKey | |||
) |
Pre-processor for $table->store($updateNulls)
boolean | $updateNulls | The result of the load |
string | $tableKey | The key of the table |
|
protected |
Internal method Parses a TypeAlias of the form "{variableName}.type", replacing {variableName} with table-instance variables variableName Storing result into $this->tagsHelper->typeAlias
Références Tags\$_myTableForPregreplaceOnly.
setNewTags | ( | $newTags, | |
$replaceTags | |||
) |
Sets the new tags to be added or to replace existing tags
array | $newTags | New tags to be added to or replace current tags for an item |
boolean | $replaceTags | Replace tags (true) or add them (false) |
|
static |
Référencé par Tags\parseTypeAlias().
|
protected |
|
protected |
|
protected |
|
protected |