EntityAcronym()
EntityAcronym(string $theValue, mixed $theOperation, boolean $getOld) : mixed
Manage entity acronym
This method can be used to add, retrieve and delete individual entity acronyms; to manage the acronyms set as a whole, use the {@link kTAG_ENTITY_ACRONYM} offset.
The method expects the following parameters:
- $theValue: This parameter represents the acronym we want to manage.
- $theOperation: This parameter identifies the operation:
- NULL: Return the acronym, if it exists, or NULL.
- FALSE: Delete the acronym, if it exists.
- other: Any other value means that we want to set the acronym provided in the previous parameter.
- $getOld: Determines what the method will return:
- TRUE: Return the value before it was eventually modified.
- FALSE: Return the value after it was eventually modified.
The method will return either the acronym, or NULL if the value was not matched.
Parameters
string | $theValue | Acronym. |
mixed | $theOperation | Operation. |
boolean | $getOld | TRUE get old value. |
Returns
mixed —Old or new value.