pg_fetch_object

Поиск
Список
Период
Сортировка
От John DeSoi
Тема pg_fetch_object
Дата
Msg-id CBF7DF3C-1EA0-4A12-8AAB-7934FDCE2D7B@pgedit.com
обсуждение исходный текст
Ответы Re: pg_fetch_object  (Michael Fuhr <mike@fuhr.org>)
Список pgsql-php
I'm using PHP 5.0.4, PostgreSQL 8.0.2.

Docs say (http://www.php.net/manual/en/function.pg-fetch-object.php):

object pg_fetch_object ( resource result [, int row [, string
class_name [, array params]]] )

pg_fetch_object() returns an object with properties that correspond
to the fetched row's field names. It can optionally instantiate an
object of a specific class, and pass parameters to that class's
constructor.

I'm passing a class name string as the third parameter, but I only
get back a stdClass object. I also added an array of params as the
4th parameter to pass to the constructor, but it does not appear to
be called.

Has anyone successfully used this to create a class other than stdClass?

Thanks,


John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL


В списке pgsql-php по дате отправления:

Предыдущее
От: Gnanavel S
Дата:
Сообщение: Re: INSERT and UPDATE page examples?
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: pg_fetch_object