Example #1
0
 public function subcompile(Node\Node $node)
 {
     $current = $this->source;
     $this->source = '';
     $node->compile($this);
     $source = $this->source;
     $this->source = $current;
     return $source;
 }
Example #2
0
File: LDAP.php Project: stunti/zf2
 /**
  * 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);
 }
Example #3
0
 /**
  * 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());
 }