derick Fri Feb 20 05:16:57 2004 EDT
Modified files: /phpdoc/dsssl common.dsl.in /phpdoc/en/reference/mysqli/functions mysqli-connect.xml Log: - Added support for rendering constructor synopsises to the DSSSL stylesheets. http://cvs.php.net/diff.php/phpdoc/dsssl/common.dsl.in?r1=1.9&r2=1.10&ty=u Index: phpdoc/dsssl/common.dsl.in diff -u phpdoc/dsssl/common.dsl.in:1.9 phpdoc/dsssl/common.dsl.in:1.10 --- phpdoc/dsssl/common.dsl.in:1.9 Fri Jan 2 14:04:02 2004 +++ phpdoc/dsssl/common.dsl.in Fri Feb 20 05:16:56 2004 @@ -1,6 +1,6 @@ ;; -*- Scheme -*- ;; -;; $Id: common.dsl.in,v 1.9 2004/01/02 19:04:02 hholzgra Exp $ +;; $Id: common.dsl.in,v 1.10 2004/02/20 10:16:56 derick Exp $ ;; ;; This file contains stylesheet customization common to the HTML ;; and print versions. @@ -256,6 +256,44 @@ ) ) + +;; render parameters +(element (constructorsynopsis methodparam) + (make sequence + ;; special case -> first parameter is optional + (if (equal? (gi (ipreced (current-node))) (normalize "methodparam")) + (empty-sosofo) ;; have prev. parameters -> is not first + (if (or (equal? (attribute-string (normalize "choice")) "opt") + (has-default-value (current-node)) + ) + (literal %arg-choice-opt-open-str%) ;; generate opening bracket + (empty-sosofo) + ) + ) + + (process-children-trim) + + ;; have more parameters following me? + (if (equal? (gi (ifollow (current-node))) (normalize "methodparam")) + (make sequence + ;; is next parameter optional? + (if (or (equal? (attribute-string (normalize "choice") (ifollow (current-node))) "opt") + (has-default-value (ifollow (current-node))) + ) + (make sequence + (literal " ") + (literal %arg-choice-opt-open-str%) + ) + (empty-sosofo) + ) + ;; parameter list separator + (literal ", ") + ) + (empty-sosofo) + ) + ) + ) + ;; special "void" return type tag (element (methodsynopsis void) (literal "void ") http://cvs.php.net/diff.php/phpdoc/en/reference/mysqli/functions/mysqli-connect.xml?r1=1.8&r2=1.9&ty=u Index: phpdoc/en/reference/mysqli/functions/mysqli-connect.xml diff -u phpdoc/en/reference/mysqli/functions/mysqli-connect.xml:1.8 phpdoc/en/reference/mysqli/functions/mysqli-connect.xml:1.9 --- phpdoc/en/reference/mysqli/functions/mysqli-connect.xml:1.8 Thu Jan 29 06:39:03 2004 +++ phpdoc/en/reference/mysqli/functions/mysqli-connect.xml Fri Feb 20 05:16:57 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> +<!-- $Revision: 1.9 $ --> <refentry id="function.mysqli-connect"> <refnamediv> <refname>mysqli_connect</refname> @@ -22,7 +22,7 @@ <classsynopsis> <ooclass><classname>mysqli</classname></ooclass> <constructorsynopsis> - <methodname></methodname> + <methodname>__construct</methodname> <methodparam choice='opt'><type>string</type><parameter>hostname</parameter></methodparam> <methodparam choice='opt'><type>string</type><parameter>username</parameter></methodparam> <methodparam choice='opt'><type>string</type><parameter>passwd</parameter></methodparam>