function checkIfDoExists($table) { OA_Dal::_setupDataObjectOptions(); global $_DB_DATAOBJECT; if (!is_array($_DB_DATAOBJECT['CONFIG']['class_location'])) { $location = $_DB_DATAOBJECT['CONFIG']['class_location']; $fileExists = DB_DataObject::findTableFile($location, $table); } else { foreach ($_DB_DATAOBJECT['CONFIG']['class_location'] as $k => $location) { $fileExists = DB_DataObject::findTableFile($location, $table); if ($fileExists) { break; } } } return $fileExists; }
/** * Clear the DataObject options cache * */ function cleanCache() { OA_Dal::_setupDataObjectOptions(false); }