getQualifiedDAOName($name); if (!$className) { fatalError('Unrecognized DAO ' . $name . '!'); } // Only instantiate each class of DAO a single time $daos[$name] =& instantiate($className, array('DAO', 'XMLDAO')); if ($dbconn != null) { $daos[$name]->setDataSource($dbconn); } } return $daos[$name]; } } ?>