\FOFModelBehavior
FrameworkOnFramework model behavior class. It defines the events which are called by a Model.
Synopsis
class FOFModelBehavior
extends JEvent
{
- // Inherited members from JEvent
- protected $_subject;
- // Inherited members from JObject
- protected $_errors;
- // methods
- public void onBeforeSave()
- public void onBeforeDelete()
- public void onBeforeCopy()
- public void onBeforePublish()
- public void onBeforeHit()
- public void onBeforeMove()
- public void onBeforeReorder()
- public void onBeforeBuildQuery()
- public void onAfterSave()
- public void onAfterDelete()
- public void onAfterCopy()
- public void onAfterPublish()
- public void onAfterHit()
- public void onAfterMove()
- public void onAfterReorder()
- public void onAfterBuildQuery()
- public void onAfterGetItem()
- // Inherited methods from JEvent
- public void __construct()
- public mixed update()
- // Inherited methods from JObject
- public void __construct()
- public string __toString()
- public mixed def()
- public mixed get()
- public array getProperties()
- public string getError()
- public array getErrors()
- public mixed set()
- public boolean setProperties()
- public void setError()
Hierarchy
Extends
Extended by
Members
protected
Methods
public
- onAfterBuildQuery() — This event runs after we have built the query used to fetch a record list in a model
- onAfterCopy() — This event runs after copying a record in a model
- onAfterDelete() — This event runs after deleting a record in a model
- onAfterGetItem() — This event runs after getting a single item
- onAfterHit() — This event runs after registering a hit on a record in a model
- onAfterMove() — This event runs after moving a record in a model
- onAfterPublish() — This event runs after publishing a record in a model
- onAfterReorder() — This event runs after reordering records in a model
- onAfterSave() — This event runs after saving a record in a model
- onBeforeBuildQuery() — This event runs when we are building the query used to fetch a record list in a model
- onBeforeCopy() — This event runs before copying a record in a model
- onBeforeDelete() — This event runs before deleting a record in a model
- onBeforeHit() — This event runs before registering a hit on a record in a model
- onBeforeMove() — This event runs before moving a record in a model
- onBeforePublish() — This event runs before publishing a record in a model
- onBeforeReorder() — This event runs before changing the records' order in a model
- onBeforeSave() — This event runs before saving data in the model
Inherited from JEvent
public
- update() — Method to trigger events.
Inherited from JObject
public
- __toString() — Magic method to convert the object to a string gracefully.
- def() — Sets a default value if not alreay assigned
- get() — Returns a property of the object or the default value if the property is not set.
- getError() — Get the most recent error message.
- getErrors() — Return all errors, if any.
- getProperties() — Returns an associative array of object properties.
- set() — Modifies a property of the object, creating it if it does not already exist.
- setError() — Add an error message.
- setProperties() — Set the object properties based on a named array/hash.