Static Public Member Functions | |
| static | makeObject ($classname, $key=null) |
Definition at line 3 of file aliroDatabaseRow.php.
| static aliroDBRowFactory::makeObject | ( | $ | classname, | |
| $ | key = null | |||
| ) | [static] |
Definition at line 5 of file aliroDatabaseRow.php.
References T_().
00005 { 00006 if (is_subclass_of($classname, 'aliroDBGeneralRow')) { 00007 $object = new $classname; 00008 if (!empty($key)) $object->load($key); 00009 return $object; 00010 } 00011 else trigger_error(T_('Asked aliroDBRowFactory to create object not subclassed from aliroDBGeneralRow')); 00012 }
1.5.5