Ejemplo n.º 1
0
 /**
  * Unregister a restriction under a particular index
  * 
  * @static
  * 
  * @param mixed $index The index object for the restriction
  * 
  * @return bool True on success, False on failure
  * 
  */
 public static function unregisterRestriction($index)
 {
     if (self::$registry === null) {
         self::$registry = new Map();
         self::initRegistry();
     }
     return self::$registry->remove($index);
 }
Ejemplo n.º 2
0
 /**
  * Remove a filter from the map, this also of course removes the queue it represents
  * 
  * @param Falcraft\Event\Resource\Filter $filter The filter to remove
  * 
  */
 public function removeFilter(EventResource\FilterInterface $filter)
 {
     if (in_array($filter, $this->conduit->getKeys())) {
         $this->conduit->remove($filter);
     }
 }