[ Index ] |
|
Code source de Zen Cart E-Commerce Shopping Cart 1.3.7.1 |
[Code source] [Imprimer] [Statistiques]
File contains just the base class
Copyright: | Copyright 2003-2005 Zen Cart Development Team |
License: | http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 |
Version: | $Id: class.base.php 3041 2006-02-15 21:56:45Z wilt $ |
Poids: | 65 lignes (2 kb) |
Inclus ou requis: | 2 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
attach(&$observer, $eventIDArray) X-Ref |
method used to an attach an observer to the notifier object NB. We have to get a little sneaky here to stop session based classes adding events ad infinitum To do this we first concatenate the class name with the event id, as a class is only ever going to attach to an event id once, this provides a unigue key. To ensure there are no naming problems with the array key, we md5 the unique name to provide a unique hashed key. param: object Reference to the observer class param: array An array of eventId's to observe |
detach($observer, $eventIDArray) X-Ref |
method used to detach an observer from the notifier object param: object param: array |
notify($eventID, $paramArray = array() X-Ref |
method to notify observers that an event as occurred in the notifier object param: string The event ID to notify for param: array paramters to pass to the observer, useful for passing stuff which is outside of the 'scope' of the observed class. |
Généré le : Mon Nov 26 16:45:43 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |