Table of Contents

getState

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Base Class JObservable Method getState Reference getState() Never Work in Progress

Get the state of the JObservable object. This function returns the state of the JObservable object. The value returned is the _state property. This is a private property that can be utilised by child classes to communicate information about the state of the observable class in a standard way.

Syntax

mixed getState ()

Examples

The _state property is a private property and must be set by the child class.

Example

$dispatcher =& JEventDispatcher::getInstance();
echo "State: ". $dispatcher->getState();