DB_DataObject::factory()

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

Synopsis

mixed DB_DataObject::factory ([string $table])

ïÐÉÓÁÎÉÅ

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.

ðÁÒÁÍÅÔÒ

÷ÏÚ×ÒÁÝÁÅÍÏÅ ÚÎÁÞÅÎÉÅ

object mixed - FALSE or the object

Throws

Таблица 34-1. ÷ÏÚÍÏÖÎÙÅ ÚÎÁÞÅÎÉÑ PEAR_Error

Error codeError messageMeaningSolution
DB_DATAOBJECT_ERROR_NOCLASS"could not autoload $class"  

úÁÍÅÔËÁ

This method can be called statically or dynamically.

ðÒÉÍÅÒ


HIVE: All information for read only. Please respect copyright!
Hosted by hive ÊÃÁ: Êèåâñêàÿ ãîðîäñêàÿ áèáëèîòåêà