->toArray()

->toArray() -- Get an array of the current result

Synopsis

void $DB_DataObject->toArray ([string $format])

Описание

Allows the fetching of an associate array (with optional key formating) for use with other packages, like HTML_QuickForms.

From PHP4.2.3RC2 onwards, The values of each column are retrieved using getXXXX() methods so you can change the formating of a row by defining a getter method.

Параметр

Заметка

Эта функция не должна вызываться статически.

Пример