* Level 2 only *

* For details see the ObservationManager section of the JCR standard document. * * @author Markus Nix * @package phpcr * @subpackage observation */ interface Event { /** * An event of this type is generated when a node is added. */ const NODE_ADDED = 1; /** * An event of this type is generated when a node is removed. */ const NODE_REMOVED = 2; /** * An event of this type is generated when a property is added. */ const PROPERTY_ADDED = 4; /** * An event of this type is generated when a property is removed. */ const PROPERTY_REMOVED = 8; /** * An event of this type is generated when a property is changed. */ const PROPERTY_CHANGED = 16; /** * Returns the type of this event: a constant defined by this interface. * One of: *

* * @return the type of this event. */ public function getType(); /** * Returns the absolute path of the parent node connected with this event. * The interpretation given to the returned path depends upon the type of the event: * * * @throws RepositoryException if an error occurs. * @return the absolute path of the parent node connected with this event. */ public function getPath(); /** * Returns the user ID connected with this event. This is the string returned by getUserId of the session that * caused the event. * * @return a String. */ public function getUserId(); } ?>