public function subcompile(Node\Node $node) { $current = $this->source; $this->source = ''; $node->compile($this); $source = $this->source; $this->source = $current; return $source; }
/** * Returns the specified DN as a Zend_LDAP_Node * * @param string|\Zend\LDAP\DN $dn * @return \Zend\LDAP\Node\Node|null * @throws \Zend\LDAP\Exception */ public function getNode($dn) { return Node\Node::fromLDAP($dn, $this); }
/** * Completes a node by adding the end position * * @param Node\Node $node Node to complete * @param Position $position Node's end position * * @return Node\Node * * @codeCoverageIgnore */ protected function completeNode(Node\Node $node, $position = null) { return $node->setEndPosition($position ? $position : $this->scanner->getPosition()); }