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é
Référence de la classe Tags
+ Graphe d'héritage de Tags:

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
 

Description détaillée

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

Depuis
3.1.2

Documentation des fonctions membres

◆ createObserver()

static createObserver ( \JObservableInterface  $observableObject,
  $params = array() 
)
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

Paramètres
\JObservableInterface$observableObjectThe subject object to be observed
array$params( 'typeAlias' => $typeAlias )
Renvoie
Tags
Depuis
3.1.2

Références $params.

Référencé par Category\__construct(), et Content\__construct().

◆ onAfterStore()

onAfterStore ( $result)

Post-processor for $table->store($updateNulls) You can change optional params newTags and replaceTags of tagsHelper with method setNewTagsToAdd

Paramètres
boolean&$resultThe result of the load
Renvoie
void
Depuis
3.1.2

◆ onBeforeDelete()

onBeforeDelete (   $pk)

Pre-processor for $table->delete($pk)

Paramètres
mixed$pkAn optional primary key value to delete. If not set the instance property value is used.
Renvoie
void
Depuis
3.1.2
Exceptions

◆ onBeforeStore()

onBeforeStore (   $updateNulls,
  $tableKey 
)

Pre-processor for $table->store($updateNulls)

Paramètres
boolean$updateNullsThe result of the load
string$tableKeyThe key of the table
Renvoie
void
Depuis
3.1.2

◆ parseTypeAlias()

parseTypeAlias ( )
protected

Internal method Parses a TypeAlias of the form "{variableName}.type", replacing {variableName} with table-instance variables variableName Storing result into $this->tagsHelper->typeAlias

Renvoie
void
Depuis
3.1.2

Références Tags\$_myTableForPregreplaceOnly.

◆ setNewTags()

setNewTags (   $newTags,
  $replaceTags 
)

Sets the new tags to be added or to replace existing tags

Paramètres
array$newTagsNew tags to be added to or replace current tags for an item
boolean$replaceTagsReplace tags (true) or add them (false)
Renvoie
boolean
Depuis
3.1.2

Documentation des champs

◆ $_myTableForPregreplaceOnly

$_myTableForPregreplaceOnly
static

Référencé par Tags\parseTypeAlias().

◆ $newTags

$newTags = false
protected

◆ $replaceTags

$replaceTags = true
protected

◆ $tagsHelper

$tagsHelper
protected

◆ $typeAliasPattern

$typeAliasPattern = null
protected

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