10 defined(
'JPATH_PLATFORM') or die;
28 protected static $observations = array();
42 public static function addObserverClassToClass($observerClass, $observableClass, $params = array())
44 if ($params !==
false)
46 static::$observations[$observableClass][$observerClass] = $params;
50 unset(static::$observations[$observableClass][$observerClass]);
65 $observableClass = get_class($observableObject);
67 while ($observableClass !=
false)
70 if (isset(static::$observations[$observableClass]))
72 foreach (static::$observations[$observableClass] as $observerClass => $params)
78 $observerClass::createObserver($observableObject, $params);
83 $observableClass = get_parent_class($observableClass);