CRM-12601 - Restore getClasses() and mitigate damage from missing function
authorTim Otten <totten@civicrm.org>
Mon, 13 May 2013 23:29:32 +0000 (19:29 -0400)
committerTim Otten <totten@civicrm.org>
Mon, 13 May 2013 23:29:32 +0000 (19:29 -0400)
----------------------------------------
* CRM-12601: Test suite crashes - CRM_Core_DAO_AllCoreTables::getClasses
  http://issues.civicrm.org/jira/browse/CRM-12601

xml/templates/listAll.tpl

index b0644813f34fba25258094e8880bd3acc6cae9b1..1919a0d34ef06f9b32083003ef0ed61c9090eccf 100644 (file)
@@ -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}