public function Find(IComponent $component) { if (isset($this->items[$component->GetName()])) { return $this->items[$component->GetName()]; } return null; }
/** * 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); }
static function Display(string $s, IComponent $c) { echo $s, $c->Operation(), "\n"; }
function __construct($etag, $url, VTYPE $type, iRemoteCalendar $item, $new) { parent::__construct($etag, $url, $type, $item, $new); $this->rulesParser = new RRuleParser(); }