/** * Subscribes itself to a publisher * * @param MW_Observer_Publisher_Interface $p Object implementing publisher interface */ public function register(MW_Observer_Publisher_Interface $p) { $p->addListener($this, 'addProduct.after'); $p->addListener($this, 'deleteProduct.after'); $p->addListener($this, 'setService.after'); $p->addListener($this, 'addCoupon.after'); }
/** * Subscribes itself to a publisher * * @param MW_Observer_Publisher_Interface $p Object implementing publisher interface */ public function register(MW_Observer_Publisher_Interface $p) { $p->addListener($this, 'check.after'); }
/** * Subscribes itself to a publisher * * @param MW_Observer_Publisher_Interface $p Object implementing publisher interface */ public function register(MW_Observer_Publisher_Interface $p) { $p->addListener($this, 'addProduct.before'); }