From 439e3e262841c648435702c140076ab42d4cdc3a Mon Sep 17 00:00:00 2001 From: Hannes Magnusson Date: Thu, 31 Aug 2006 22:09:10 +0000 Subject: [PATCH] - Add mysql*_fetch_object optional arguments (been around since 5.0) - an stdClass -> a stdClass.. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@219193 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../mysql/functions/mysql-fetch-object.xml | 46 ++++++++++++++++++- .../mysqli/functions/mysqli-fetch-object.xml | 36 +++++++++++++-- reference/pgsql/functions/pg-fetch-object.xml | 4 +- 3 files changed, 79 insertions(+), 7 deletions(-) diff --git a/reference/mysql/functions/mysql-fetch-object.xml b/reference/mysql/functions/mysql-fetch-object.xml index a881907caa..5cc4cb85aa 100644 --- a/reference/mysql/functions/mysql-fetch-object.xml +++ b/reference/mysql/functions/mysql-fetch-object.xml @@ -1,5 +1,5 @@ - + mysql_fetch_object @@ -11,6 +11,8 @@ objectmysql_fetch_object resourceresult + stringclass_name + arrayparams Returns an object with properties that correspond to the fetched row @@ -23,6 +25,24 @@ &mysql.result.description; + + class_name + + + The name of the class to instantiate, set the properties of and return. + If not specified, a stdClass object is returned. + + + + + params + + + An optional array of parameters to pass to the constructor + for class_name objects. + + + @@ -41,6 +61,30 @@ + + &reftitle.changelog; + + + + + + &Version; + &Description; + + + + + 5.0.0 + + Added the ability to return as a different object. + + + + + + + + &reftitle.examples; diff --git a/reference/mysqli/functions/mysqli-fetch-object.xml b/reference/mysqli/functions/mysqli-fetch-object.xml index ad9a569bbc..252cce87f1 100644 --- a/reference/mysqli/functions/mysqli-fetch-object.xml +++ b/reference/mysqli/functions/mysqli-fetch-object.xml @@ -1,5 +1,5 @@ - + mysqli_fetch_object @@ -10,15 +10,18 @@ Description Procedural style: - mixedmysqli_fetch_object + objectmysqli_fetch_object mysqli_resultresult + stringclass_name + arrayparams Object oriented style (method): mysqli_result - mixedfetch_object - + objectfetch_object + stringclass_name + arrayparams @@ -35,6 +38,31 @@ &database.field-case; &database.fetch-null; + + + &reftitle.changelog; + + + + + + &Version; + &Description; + + + + + 5.0.0 + + Added the ability to return as a different object. + + + + + + + + &reftitle.seealso; diff --git a/reference/pgsql/functions/pg-fetch-object.xml b/reference/pgsql/functions/pg-fetch-object.xml index 3134c490b3..e351739cd3 100644 --- a/reference/pgsql/functions/pg-fetch-object.xml +++ b/reference/pgsql/functions/pg-fetch-object.xml @@ -1,5 +1,5 @@ - + @@ -92,7 +92,7 @@ The name of the class to instantiate, set the properties of and return. - If not specified, an stdClass object is returned. + If not specified, a stdClass object is returned.