Tags
class Tags extends AbstractObserver
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 instanciated directly, as they are automatically instanciated by the \JObserverMapper
Properties
static Tags | $_myTableForPregreplaceOnly | Not public, so marking private and deprecated, but needed internally in parseTypeAlias for PHP < 5.4.0 as it's not passing context $this to closure function. |
Methods
Pre-processor for $table->load($keys, $reset)
Post-processor for $table->load($keys, $reset)
Pre-processor for $table->store($updateNulls)
Post-processor for $table->store($updateNulls) You can change optional params newTags and replaceTags of tagsHelper with method setNewTagsToAdd
Pre-processor for $table->delete($pk)
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
Sets the new tags to be added or to replace existing tags
Details
void
onBeforeStore(
boolean $updateNulls,
string $tableKey)
Pre-processor for $table->store($updateNulls)
void
onAfterStore(
boolean $result)
Post-processor for $table->store($updateNulls) You can change optional params newTags and replaceTags of tagsHelper with method setNewTagsToAdd
static
JObserverInterface
createObserver(
JObservableInterface $observableObject,
array $params = array())
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