phpQueryObject::toRoot PHP Method

toRoot() public method

.. NON JQUERY METHOD. Watch out, it doesn't creates new instance, can be reverted with end().
public toRoot ( ) : phpQueryObject | QueryTemplatesSource | QueryTemplatesParse | QueryTemplatesSourceQuery
return phpQueryObject | QueryTemplatesSource | QueryTemplatesParse | QueryTemplatesSourceQuery
    public function toRoot()
    {
        $this->elements = array($this->root);
        return $this;
        //		return $this->newInstance(array($this->root));
    }