ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
php4DOMXPath Class Reference
+ Collaboration diagram for php4DOMXPath:

Public Member Functions

 xpath_eval ($eval_str)
 
 php4DOMXPath ($dom_document)
 
 query ($eval_str)
 
 xpath_register_ns ($prefix, $namespaceURI)
 
 php4DOMXPath ($dom_document)
 
 xpath_eval ($eval_str, $contextnode=null)
 
 xpath_register_ns ($prefix, $namespaceURI)
 
 php4DOMXPath ($dom_document)
 
 query ($eval_str, $contextnode)
 
 xpath_register_ns ($prefix, $namespaceURI)
 
 xpath_eval ($eval_str)
 
 php4DOMXPath ($dom_document)
 
 query ($eval_str)
 
 xpath_register_ns ($prefix, $namespaceURI)
 

Data Fields

 $myDOMXPath
 

Private Attributes

 $myOwnerDocument
 

Detailed Description

Definition at line 607 of file inc.xml5compliance.php.

Member Function Documentation

◆ php4DOMXPath() [1/4]

php4DOMXPath::php4DOMXPath (   $dom_document)

Definition at line 617 of file inc.xml5compliance.php.

618 {
619 $this->myDOMXPath=new DOMXPath($dom_document->myDOMDocument);
620 }

◆ php4DOMXPath() [2/4]

php4DOMXPath::php4DOMXPath (   $dom_document)

Definition at line 450 of file domxml-php4-to-php5.php.

451 {
452 //TODO: If $dom_document is a DomElement, make that default $contextnode and modify XPath. Ex: '/test'
453 $this->myOwnerDocument=$dom_document->myOwnerDocument;
454 $this->myDOMXPath=new DOMXPath($this->myOwnerDocument->myDOMNode);
455 }

◆ php4DOMXPath() [3/4]

php4DOMXPath::php4DOMXPath (   $dom_document)

Definition at line 463 of file domxml-php4-php5.php.

464 {
465echo "-v";
466 $this->myOwnerDocument=$dom_document;
467 $this->myDOMXPath=new DOMXPath($dom_document->myDOMNode);
468 }

◆ php4DOMXPath() [4/4]

php4DOMXPath::php4DOMXPath (   $dom_document)

Definition at line 549 of file inc.xml5compliance.php.

550 {
551 $this->myDOMXPath=new DOMXPath($dom_document->myDOMDocument);
552 }

◆ query() [1/3]

php4DOMXPath::query (   $eval_str)

Definition at line 622 of file inc.xml5compliance.php.

623 {
624 return new php4DOMNodelist($this->myDOMXPath->query($eval_str));
625 }

◆ query() [2/3]

php4DOMXPath::query (   $eval_str)

Definition at line 554 of file inc.xml5compliance.php.

555 {
556 return new php4DOMNodelist($this->myDOMXPath->query($eval_str));
557 }

◆ query() [3/3]

php4DOMXPath::query (   $eval_str,
  $contextnode 
)

Definition at line 470 of file domxml-php4-php5.php.

471 {
472echo "-w";
473 if (isset($contextnode)) return new php4DOMNodelist($this->myDOMXPath->query($eval_str,$contextnode->myDOMNode),$this->myOwnerDocument);
474 else return new php4DOMNodelist($this->myDOMXPath->query($eval_str),$this->myOwnerDocument);
475 }

◆ xpath_eval() [1/3]

php4DOMXPath::xpath_eval (   $eval_str)

Definition at line 612 of file inc.xml5compliance.php.

613 {
614 return xpath_eval($this, $eval_str);
615 }
xpath_eval($eval_str)

References xpath_eval().

Referenced by xpath_eval().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ xpath_eval() [2/3]

php4DOMXPath::xpath_eval (   $eval_str)

Definition at line 544 of file inc.xml5compliance.php.

545 {
546 return xpath_eval($this, $eval_str);
547 }

References xpath_eval().

+ Here is the call graph for this function:

◆ xpath_eval() [3/3]

php4DOMXPath::xpath_eval (   $eval_str,
  $contextnode = null 
)

Definition at line 456 of file domxml-php4-to-php5.php.

457 {
458 if (method_exists($this->myDOMXPath,'evaluate')) $xp=isset($contextnode) ? $this->myDOMXPath->evaluate($eval_str,$contextnode->myDOMNode) : $this->myDOMXPath->evaluate($eval_str);
459 else $xp=isset($contextnode) ? $this->myDOMXPath->query($eval_str,$contextnode->myDOMNode) : $this->myDOMXPath->query($eval_str);
460 $xp=new php4DOMNodelist($xp,$this->myOwnerDocument);
461 return ($xp->type===XPATH_UNDEFINED) ? false : $xp;
462 }

◆ xpath_register_ns() [1/4]

php4DOMXPath::xpath_register_ns (   $prefix,
  $namespaceURI 
)

Definition at line 627 of file inc.xml5compliance.php.

628 {
629 return $this->myDOMXPath->registerNamespace($prefix,$namespaceURI);
630 }

◆ xpath_register_ns() [2/4]

php4DOMXPath::xpath_register_ns (   $prefix,
  $namespaceURI 
)

Definition at line 463 of file domxml-php4-to-php5.php.

463{return $this->myDOMXPath->registerNamespace($prefix,$namespaceURI);}

◆ xpath_register_ns() [3/4]

php4DOMXPath::xpath_register_ns (   $prefix,
  $namespaceURI 
)

Definition at line 477 of file domxml-php4-php5.php.

478 {
479echo "-x";
480 return $this->myDOMXPath->registerNamespace($prefix,$namespaceURI);
481 }

◆ xpath_register_ns() [4/4]

php4DOMXPath::xpath_register_ns (   $prefix,
  $namespaceURI 
)

Definition at line 559 of file inc.xml5compliance.php.

560 {
561 return $this->myDOMXPath->registerNamespace($prefix,$namespaceURI);
562 }

Field Documentation

◆ $myDOMXPath

php4DOMXPath::$myDOMXPath

Definition at line 609 of file inc.xml5compliance.php.

◆ $myOwnerDocument

php4DOMXPath::$myOwnerDocument
private

Definition at line 449 of file domxml-php4-to-php5.php.


The documentation for this class was generated from the following files: