projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #6262 from civicrm/revert-6186-CRM-16826
[civicrm-core.git]
/
xml
/
templates
/
listAll.tpl
diff --git
a/xml/templates/listAll.tpl
b/xml/templates/listAll.tpl
index f302ac11638f43c981f571196d9f16a28c73c51f..ed843c7432c7a54dec4f5d1cd036a52aeb7fe510 100644
(file)
--- a/
xml/templates/listAll.tpl
+++ b/
xml/templates/listAll.tpl
@@
-2,9
+2,9
@@
/*
+--------------------------------------------------------------------+
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.
5
|
+ | CiviCRM version 4.
6
|
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-201
4
|
+ | Copyright CiviCRM LLC (c) 2004-201
5
|
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
@@
-29,7
+29,7
@@
/**
*
* @package CRM
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-201
4
+ * @copyright CiviCRM LLC (c) 2004-201
5
* $Id$
*
*/
* $Id$
*
*/
@@
-38,8
+38,9
@@
class CRM_Core_DAO_AllCoreTables {ldelim}
static private $tables = null;
static private $daoToClass = null;
static private $tables = null;
static private $daoToClass = null;
+ static private $entityTypes = null;
- static p
rivate
function init($fresh = FALSE) {ldelim}
+ static p
ublic
function init($fresh = FALSE) {ldelim}
static $init = FALSE;
if ($init && !$fresh) return;
static $init = FALSE;
if ($init && !$fresh) return;
@@
-55,6
+56,7
@@
class CRM_Core_DAO_AllCoreTables {ldelim}
CRM_Utils_Hook::entityTypes($entityTypes);
CRM_Utils_Hook::entityTypes($entityTypes);
+ self::$entityTypes = array();
self::$tables = array();
self::$daoToClass = array();
foreach ($entityTypes as $entityType) {ldelim}
self::$tables = array();
self::$daoToClass = array();
foreach ($entityTypes as $entityType) {ldelim}
@@
-64,9
+66,22
@@
class CRM_Core_DAO_AllCoreTables {ldelim}
$init = TRUE;
{rdelim}
$init = TRUE;
{rdelim}
- static private function registerEntityType($daoName, $className, $tableName) {ldelim}
+ /**
+ * (Quasi-Private) Do not call externally (except for unit-testing)
+ */
+ static public function registerEntityType($daoName, $className, $tableName) {ldelim}
self::$daoToClass[$daoName] = $className;
self::$tables[$tableName] = $className;
self::$daoToClass[$daoName] = $className;
self::$tables[$tableName] = $className;
+ self::$entityTypes[$className] = array(
+ 'name' => $daoName,
+ 'class' => $className,
+ 'table' => $tableName,
+ );
+ {rdelim}
+
+ static public function get() {ldelim}
+ self::init();
+ return self::$entityTypes;
{rdelim}
static public function tables() {ldelim}
{rdelim}
static public function tables() {ldelim}