Skip to content
Snippets Groups Projects
Commit 439a6148 authored by totten's avatar totten
Browse files

CRM-12601 - Restore getClasses() and mitigate damage from missing function

----------------------------------------
* CRM-12601: Test suite crashes - CRM_Core_DAO_AllCoreTables::getClasses
  http://issues.civicrm.org/jira/browse/CRM-12601
parent 7d9073ca
Branches
Tags
No related merge requests found
......@@ -57,6 +57,18 @@ class CRM_Core_DAO_AllCoreTables {ldelim}
return FALSE !== array_search($tableName, self::$tables);
{rdelim}
static public function getClasses() {ldelim}
return array_values(self::$daoToClass);
{rdelim}
static public function getClassForTable($tableName) {ldelim}
// The $tables structure was changed, and this function was removed, but
// I'm not sure why, and it's killing the test-suite. So put in a
// placeholder.
// return CRM_Utils_Array::value($tableName, self::$tables);
throw new Exception("Not implemented: getClassForTable()");
{rdelim}
static public function getFullName($daoName) {ldelim}
return CRM_Utils_Array::value($daoName, self::$daoToClass);
{rdelim}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment