예제 #1
0
 /**
  * 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');
 }
예제 #2
0
 /**
  * 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');
 }
예제 #3
0
 /**
  * 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');
 }