X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCase%2FInfo.php;h=a1e5ebbe2123935c8437389eda14d5217bb1ca97;hb=6ce097e8cbed152c457341c84624825822e3c354;hp=21ef6a32e620e573ffd6c23bde090de93ff5ba5e;hpb=58bf7ae98c1e1dea2b27ceb61c2d8afeced44c9e;p=civicrm-core.git diff --git a/CRM/Case/Info.php b/CRM/Case/Info.php index 21ef6a32e6..a1e5ebbe21 100644 --- a/CRM/Case/Info.php +++ b/CRM/Case/Info.php @@ -59,19 +59,10 @@ class CRM_Case_Info extends CRM_Core_Component_Info { * @inheritDoc */ public function getAngularModules() { - $result = array(); - $result['crmCaseType'] = array( - 'ext' => 'civicrm', - 'js' => array('ang/crmCaseType.js'), - 'css' => array('ang/crmCaseType.css'), - 'partials' => array('ang/crmCaseType'), - ); + global $civicrm_root; - CRM_Core_Resources::singleton()->addSetting(array( - 'crmCaseType' => array( - 'REL_TYPE_CNAME' => CRM_Case_XMLProcessor::REL_TYPE_CNAME, - ), - )); + $result = array(); + $result['crmCaseType'] = include "$civicrm_root/ang/crmCaseType.ang.php"; return $result; } @@ -254,4 +245,40 @@ class CRM_Case_Info extends CRM_Core_Component_Info { } } + /** + * @return array + * Array(string $value => string $label). + */ + public static function getRedactOptions() { + return array( + 'default' => ts('Default'), + '0' => ts('Do not redact emails'), + '1' => ts('Redact emails'), + ); + } + + /** + * @return array + * Array(string $value => string $label). + */ + public static function getMultiClientOptions() { + return array( + 'default' => ts('Default'), + '0' => ts('Single client per case'), + '1' => ts('Multiple client per case'), + ); + } + + /** + * @return array + * Array(string $value => string $label). + */ + public static function getSortOptions() { + return array( + 'default' => ts('Default'), + '0' => ts('Definition order'), + '1' => ts('Alphabetical order'), + ); + } + }