From 12612a6fad2c4790bde169cc5f82d1e961ff755e Mon Sep 17 00:00:00 2001 From: Hannes Magnusson Date: Sun, 23 Dec 2007 18:42:15 +0000 Subject: [PATCH] MFB: Upgrade to the new-reference-structure - (Created missing setup sections in setup.xml, if any) - Moved the intro to book.xml - Changed the intro ID from .intro to intro. - Moved the constants entity to book.xml - Changed constants.xml to be an appendix - Moved the examples into its own chapter (examples.xml) NOTE: The "ingres.examples" ID was renamed to ingres.examples-basic and the example chapter uses the 'ingres.examples' ID now - Moved the requirements and resources sections to setup.xml - Moved the configure entity to setup.xml git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@248841 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/ingres-ii/book.xml | 57 +++++++++++++++++++ reference/ingres-ii/constants.xml | 6 +- reference/ingres-ii/examples.xml | 69 +++++++++++++++++++++++ reference/ingres-ii/reference.xml | 93 +------------------------------ reference/ingres-ii/setup.xml | 57 +++++++++++++++++++ 5 files changed, 188 insertions(+), 94 deletions(-) create mode 100644 reference/ingres-ii/book.xml create mode 100644 reference/ingres-ii/examples.xml create mode 100644 reference/ingres-ii/setup.xml diff --git a/reference/ingres-ii/book.xml b/reference/ingres-ii/book.xml new file mode 100644 index 0000000000..04c5ab98ae --- /dev/null +++ b/reference/ingres-ii/book.xml @@ -0,0 +1,57 @@ + + + + + + + Ingres II + + + + &reftitle.intro; + + These functions allow you to access Ingres II database servers. + + + + If you already used PHP extensions to access other database + servers, note that Ingres doesn't allow concurrent queries and/or + transaction over one connection, thus you won't find any result + or transaction handle in this extension. The result of a query + must be treated before sending another query, and a transaction + must be committed or rolled back before opening another + transaction (which is automatically done when sending the first + query). + + + + + + &reference.ingres-ii.setup; + &reference.ingres-ii.constants; + &reference.ingres-ii.examples; + &reference.ingres-ii.reference; + + + + + diff --git a/reference/ingres-ii/constants.xml b/reference/ingres-ii/constants.xml index 6b48b2548f..be6c455105 100644 --- a/reference/ingres-ii/constants.xml +++ b/reference/ingres-ii/constants.xml @@ -1,6 +1,6 @@ - -
+ + &reftitle.constants; &extension.constants; @@ -301,7 +301,7 @@ -
+ + + + &reftitle.examples; +
+ + This simple example shows how to connect, execute a query, print + resulting rows and disconnect from an Ingres database. + + Simple Ingres Example + +\n"; +while ($iirelation = ingres_fetch_object(INGRES_BOTH, $link)) { + echo "\t\n"; + echo "\t\t" . $iirelation->relid . "\n"; + echo "\t\t" . $iirelation->relowner . "\n"; + echo "\t\n"; +} +echo "\n"; + +// Commit transaction +ingres_commit($link); +// Closing connection +ingres_close($link); +?> +]]> + + + +
+
+ + + diff --git a/reference/ingres-ii/reference.xml b/reference/ingres-ii/reference.xml index d34a937fe3..51c3e1be48 100644 --- a/reference/ingres-ii/reference.xml +++ b/reference/ingres-ii/reference.xml @@ -1,97 +1,8 @@ - - - + - Ingres II Functions - Ingres II - - -
- &reftitle.intro; - - These functions allow you to access Ingres II database servers. - - - - If you already used PHP extensions to access other database - servers, note that Ingres doesn't allow concurrent queries and/or - transaction over one connection, thus you won't find any result - or transaction handle in this extension. The result of a query - must be treated before sending another query, and a transaction - must be committed or rolled back before opening another - transaction (which is automatically done when sending the first - query). - - -
- -
- &reftitle.required; - - To compile PHP with Ingres support, you need the Ingres OpenAPI library - and header files. - -
- - &reference.ingres-ii.configure; - - &reference.ingres-ii.ini; - -
- &reftitle.resources; - - ingres_connect and - ingres_pconnect return an Ingres II link identifier. - -
- - &reference.ingres-ii.constants; - -
- &reftitle.examples; - - This simple example shows how to connect, execute a query, print - resulting rows and disconnect from an Ingres database. - - Simple Ingres Example - -\n"; -while ($iirelation = ingres_fetch_object(INGRES_BOTH, $link)) { - echo "\t\n"; - echo "\t\t" . $iirelation->relid . "\n"; - echo "\t\t" . $iirelation->relowner . "\n"; - echo "\t\n"; -} -echo "\n"; - -// Commit transaction -ingres_commit($link); -// Closing connection -ingres_close($link); -?> -]]> - - - -
-
+ Ingres II &Functions; &reference.ingres-ii.entities.functions; diff --git a/reference/ingres-ii/setup.xml b/reference/ingres-ii/setup.xml new file mode 100644 index 0000000000..e3ed4ceffa --- /dev/null +++ b/reference/ingres-ii/setup.xml @@ -0,0 +1,57 @@ + + + + + &reftitle.setup; + + +
+ &reftitle.required; + + To compile PHP with Ingres support, you need the Ingres OpenAPI library + and header files. + +
+ + + + &reference.ingres-ii.configure; + + + + &reference.ingres-ii.ini; + + + +
+ &reftitle.resources; + + ingres_connect and + ingres_pconnect return an Ingres II link identifier. + +
+ + +
+ + +