@@ -470,10 +470,10 @@ discard block |
||
470 | 470 | /** |
471 | 471 | * Given a pair of nodes, replace the first with the second |
472 | 472 | * |
473 | - * @param mixed $node |
|
473 | + * @param \DOMElement $node |
|
474 | 474 | * Node to be replaced. Can either be an xpath string or a DOMDocument (or even a DOMNode). |
475 | 475 | * |
476 | - * @param mixed $replace |
|
476 | + * @param \DOMElement $replace |
|
477 | 477 | * Replace $node with $replace. Replace can be an XML string, or a DOMNode |
478 | 478 | * |
479 | 479 | * @return mixed |
@@ -533,7 +533,7 @@ discard block |
||
533 | 533 | * $context can either be an xpath string, or a DOMElement. Ommiting it |
534 | 534 | * results in transforming the entire document |
535 | 535 | * |
536 | - * @return a new DOMDoc |
|
536 | + * @return DOMDoc new DOMDoc |
|
537 | 537 | */ |
538 | 538 | public function tranform($xsl, $context = NULL) { |
539 | 539 | if (!$context) { |
@@ -615,7 +615,7 @@ discard block |
||
615 | 615 | * it will transform all elements with xlink:type = simple into a <a href> element. |
616 | 616 | * Alternatively you may specify your own xpath for selecting which elements get transformed |
617 | 617 | * into <a href> tags. |
618 | - * @return HTML string |
|
618 | + * @return string string |
|
619 | 619 | */ |
620 | 620 | public function asHTML($context = NULL, $options = array()) { |
621 | 621 | $xslSimple = ' |
@@ -697,7 +697,7 @@ discard block |
||
697 | 697 | * $context can either be an xpath string, or a DOMElement. Ommiting it |
698 | 698 | * results in outputting the entire document |
699 | 699 | * |
700 | - * @return XML string |
|
700 | + * @return string string |
|
701 | 701 | */ |
702 | 702 | public function out($context = NULL) { |
703 | 703 | $this->createContext($context, 'xpath'); |
@@ -745,6 +745,9 @@ discard block |
||
745 | 745 | ); |
746 | 746 | } |
747 | 747 | |
748 | + /** |
|
749 | + * @param string|boolean $error_checking |
|
750 | + */ |
|
748 | 751 | public function setErrorChecking($error_checking) { |
749 | 752 | // Check up error-checking |
750 | 753 | if ($error_checking == FALSE) { |
@@ -774,6 +777,9 @@ discard block |
||
774 | 777 | return boolval($success); |
775 | 778 | } |
776 | 779 | |
780 | + /** |
|
781 | + * @param integer $options |
|
782 | + */ |
|
777 | 783 | public function loadXML($source, $options = NULL) { |
778 | 784 | $success = parent::loadXML($source, $options); |
779 | 785 | $this->AutoRegisterNamespace(TRUE); |
@@ -800,6 +806,9 @@ discard block |
||
800 | 806 | unset($this->ns[$prefix]); |
801 | 807 | } |
802 | 808 | |
809 | + /** |
|
810 | + * @param boolean|string $auto_register_namespaces |
|
811 | + */ |
|
803 | 812 | protected function AutoRegisterNamespace($auto_register_namespaces) { |
804 | 813 | $this->auto_ns = TRUE; |
805 | 814 |