+--------------------------------------------------------------------+
| CiviCRM version 5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2018 |
+ | Copyright CiviCRM LLC (c) 2004-2019 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2018
+ * @copyright CiviCRM LLC (c) 2004-2019
*/
/**
* Activity type
* @var array
*/
- static $activityTypeList = array();
+ public static $activityTypeList = [];
/**
* Get all the case statues.
$cache = (int) $indexName . '_' . (int) $all;
if (!array_key_exists($cache, self::$activityTypeList)) {
- self::$activityTypeList[$cache] = array();
+ self::$activityTypeList[$cache] = [];
$query = "
SELECT v.label as label ,v.value as value, v.name as name, v.description as description, v.icon
$dao = CRM_Core_DAO::executeQuery($query);
- $activityTypes = array();
+ $activityTypes = [];
while ($dao->fetch()) {
if ($indexName) {
$index = $dao->name;
else {
$index = $dao->value;
}
- $activityTypes[$index] = array();
+ $activityTypes[$index] = [];
$activityTypes[$index]['id'] = $dao->value;
$activityTypes[$index]['label'] = $dao->label;
$activityTypes[$index]['name'] = $dao->name;