Example #1
0
 public function Find(IComponent $component)
 {
     if (isset($this->items[$component->GetName()])) {
         return $this->items[$component->GetName()];
     }
     return null;
 }
Example #2
0
 /**
  * Removes a component from the IComponentContainer.
  * @param  IComponent
  * @return void
  */
 public function removeComponent(IComponent $component)
 {
     $name = $component->getName();
     if (!isset($this->components[$name]) || $this->components[$name] !== $component) {
         throw new InvalidArgumentException("Component named '{$name}' is not located in this container.");
     }
     unset($this->components[$name]);
     $component->setParent(NULL);
 }
Example #3
0
 static function Display(string $s, IComponent $c)
 {
     echo $s, $c->Operation(), "\n";
 }
Example #4
0
 function __construct($etag, $url, VTYPE $type, iRemoteCalendar $item, $new)
 {
     parent::__construct($etag, $url, $type, $item, $new);
     $this->rulesParser = new RRuleParser();
 }