class JObserver extends JObject

Abstract observer class to implement the observer design pattern

Methods

__construct( object $subject)

Constructor

mixed
update( array $args)

Method to update the state of observable objects

Details

__construct( object $subject)

Constructor

Parameters

object $subject &$subject The object to observe.

abstract mixed update( array $args)

Method to update the state of observable objects

Parameters

array $args &$args An array of arguments to pass to the listener.

Return Value

mixed