DB_DataObject::factory()

DB_DataObject::factory()

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

Description

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.

Parameter

  • 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)

Return value

object mixed - FALSE or the object

Note

This method can be called statically or dynamically.

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.