FluidXml\FluidContext::remove PHP Метод

remove() публичный Метод

public remove ( $query )
    public function remove(...$query)
    {
        // Arguments can be empty, a string or an array of strings.
        if (empty($query)) {
            // The user has requested to remove the nodes of this context.
            $targets = $this->nodes;
        } else {
            $targets = $this->query(...$query);
        }
        foreach ($targets as $t) {
            $t->parentNode->removeChild($t);
        }
        return $this;
    }