Auto Building and Database Schema (Previous) (Next) ->get()

View this page in Last updated: Sun, 01 Jul 2007
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

DB_DataObject::factory()

DB_DataObject::factory() -- Autoload and instantate class based on table name.

Leírás

This is the recommended way to autoload a class, and instantate it. The class is loaded based on the configuration settings (class_location and class_prefix) for table to class naming.

Paraméterek

  • string $table - the table you want to load ([From Version 1.7.2] if blank, and called on an an instance of a dataobject, it will create a new instance of that object)

Visszatérési érték

object mixed - FALSE or the object

Megjegyzés

This method can be called statically or dynamically.

Auto Building and Database Schema (Previous) (Next) ->get()

Download Documentation Last updated: Sun, 01 Jul 2007
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.