ILIAS  release_4-4 Revision
All Data Structures Namespaces Files Functions Variables Modules Pages
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 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() [2/4]

php4DOMXPath::php4DOMXPath (   $dom_document)

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

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

◆ php4DOMXPath() [3/4]

php4DOMXPath::php4DOMXPath (   $dom_document)

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

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

◆ php4DOMXPath() [4/4]

php4DOMXPath::php4DOMXPath (   $dom_document)

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

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

◆ query() [1/3]

php4DOMXPath::query (   $eval_str,
  $contextnode 
)

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

References php4DOMNode\$myOwnerDocument.

471  {
472 echo "-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  }

◆ 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)

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

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

◆ xpath_eval() [1/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_eval() [2/3]

php4DOMXPath::xpath_eval (   $eval_str)

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

References xpath_eval().

545  {
546  return xpath_eval($this, $eval_str);
547  }
xpath_eval($eval_str)
+ Here is the call graph for this function:

◆ xpath_eval() [3/3]

php4DOMXPath::xpath_eval (   $eval_str)

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

References xpath_eval().

613  {
614  return xpath_eval($this, $eval_str);
615  }
xpath_eval($eval_str)
+ Here is the call graph for this function:

◆ xpath_register_ns() [1/4]

php4DOMXPath::xpath_register_ns (   $prefix,
  $namespaceURI 
)

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

References $filename.

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

◆ xpath_register_ns() [2/4]

php4DOMXPath::xpath_register_ns (   $prefix,
  $namespaceURI 
)

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

References $filename.

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

◆ xpath_register_ns() [3/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  }

◆ xpath_register_ns() [4/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  }

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: