Ejemplo n.º 1
0
 /**
  * Detach a listener from ourselves
  * 
  * so that we no longer notify them when our state changes
  * 
  * @param Falcraft\Patterns\Resource\ObserverInterface $observer
  * 
  */
 public function detachListener(PatternsResource\ObserverInterface $observer)
 {
     if ($this->observers->in($observer)) {
         $this->observers->remove($observer);
     }
 }
Ejemplo n.º 2
0
 /**
  * Is an extension allowed?
  * 
  * @return boolean
  * 
  */
 public function isExtension($extension)
 {
     return $this->extensions->in($extension);
 }
Ejemplo n.º 3
0
 /**
  * Detach from the publisher
  * 
  */
 public function detach(PatternsResource\PublisherInterface $publisher)
 {
     if ($this->subject->in($publisher)) {
         $this->subject->remove($publisher);
     }
 }