ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups 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::php4DOMXPath (   $dom_document)

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

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

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

{
echo "-v";
$this->myOwnerDocument=$dom_document;
$this->myDOMXPath=new DOMXPath($dom_document->myDOMNode);
}
php4DOMXPath::php4DOMXPath (   $dom_document)

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

{
$this->myDOMXPath=new DOMXPath($dom_document->myDOMDocument);
}
php4DOMXPath::php4DOMXPath (   $dom_document)

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

{
$this->myDOMXPath=new DOMXPath($dom_document->myDOMDocument);
}
php4DOMXPath::query (   $eval_str,
  $contextnode 
)

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

References $myOwnerDocument.

{
echo "-w";
if (isset($contextnode)) return new php4DOMNodelist($this->myDOMXPath->query($eval_str,$contextnode->myDOMNode),$this->myOwnerDocument);
else return new php4DOMNodelist($this->myDOMXPath->query($eval_str),$this->myOwnerDocument);
}
php4DOMXPath::query (   $eval_str)

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

{
return new php4DOMNodelist($this->myDOMXPath->query($eval_str));
}
php4DOMXPath::query (   $eval_str)

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

{
//echo "-$eval_str-";
return new php4DOMNodelist($this->myDOMXPath->query($eval_str));
}
php4DOMXPath::xpath_eval (   $eval_str,
  $contextnode = null 
)

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

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

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

References xpath_eval().

{
return xpath_eval($this, $eval_str);
}

+ Here is the call graph for this function:

php4DOMXPath::xpath_eval (   $eval_str)

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

Referenced by xpath_eval().

{
return xpath_eval($this, $eval_str);
}

+ Here is the caller graph for this function:

php4DOMXPath::xpath_register_ns (   $prefix,
  $namespaceURI 
)

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

{return $this->myDOMXPath->registerNamespace($prefix,$namespaceURI);}
php4DOMXPath::xpath_register_ns (   $prefix,
  $namespaceURI 
)

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

{
echo "-x";
return $this->myDOMXPath->registerNamespace($prefix,$namespaceURI);
}
php4DOMXPath::xpath_register_ns (   $prefix,
  $namespaceURI 
)

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

{
return $this->myDOMXPath->registerNamespace($prefix,$namespaceURI);
}
php4DOMXPath::xpath_register_ns (   $prefix,
  $namespaceURI 
)

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

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

Field Documentation

php4DOMXPath::$myDOMXPath

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

php4DOMXPath::$myOwnerDocument
private

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

Referenced by query().


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