From db33512d7ec1564174b827f87e9216cc751a646b Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Mon, 18 Feb 2008 07:45:44 +0000 Subject: [PATCH] Documentation. --- includes/Preprocessor.php | 78 +++++++++++++++++++++++++++++++++- includes/Preprocessor_DOM.php | 6 ++- includes/Preprocessor_Hash.php | 8 ++-- 3 files changed, 85 insertions(+), 7 deletions(-) diff --git a/includes/Preprocessor.php b/includes/Preprocessor.php index 2543a23dc8..34bc1e5b3a 100644 --- a/includes/Preprocessor.php +++ b/includes/Preprocessor.php @@ -1,8 +1,13 @@ node into an associative array containing: + * name PPNode name + * index String index + * value PPNode value + */ function splitArg(); + + /** + * Split an node into an associative array containing name, attr, inner and close + * All values in the resulting array are PPNodes. Inner and close are optional. + */ function splitExt(); + + /** + * Split an node + */ function splitHeading(); } diff --git a/includes/Preprocessor_DOM.php b/includes/Preprocessor_DOM.php index c3ed83aa2a..0e2e9a1615 100644 --- a/includes/Preprocessor_DOM.php +++ b/includes/Preprocessor_DOM.php @@ -1297,8 +1297,10 @@ class PPNode_DOM implements PPNode { } /** - * Split an node into a three-element array: - * PPNode name, string index and PPNode value + * Split a node into an associative array containing: + * name PPNode name + * index String index + * value PPNode value */ function splitArg() { $names = $this->xpath->query( 'name', $this->node ); diff --git a/includes/Preprocessor_Hash.php b/includes/Preprocessor_Hash.php index 1d6331bd0d..2034278d4b 100644 --- a/includes/Preprocessor_Hash.php +++ b/includes/Preprocessor_Hash.php @@ -1265,8 +1265,10 @@ class PPNode_Hash_Tree implements PPNode { } /** - * Split an node into a three-element array: - * PPNode name, string index and PPNode value + * Split a node into an associative array containing: + * name PPNode name + * index String index + * value PPNode value */ function splitArg() { $bits = array(); @@ -1322,7 +1324,7 @@ class PPNode_Hash_Tree implements PPNode { } /** - * Split a node + * Split an node */ function splitHeading() { if ( $this->name !== 'h' ) { -- 2.20.1