CRM_Utils_System::civiExit();
}
+ /**
+ * @param $name
+ *
+ * @return string
+ */
static function _convertToId($name) {
if (substr($name, 0, CRM_Core_Form::CB_PREFIX_LEN) == CRM_Core_Form::CB_PREFIX) {
$cId = substr($name, CRM_Core_Form::CB_PREFIX_LEN);
*/
static $_links = NULL;
+ /**
+ * @return array
+ */
public static function &info() {
$sql = "
SELECT v.value, v.label, v.description
return 'civicrm/contact/deduperules';
}
+ /**
+ * @param $id
+ */
function delete($id) {
$ruleDao = new CRM_Dedupe_DAO_Rule();
$ruleDao->dedupe_rule_group_id = $id;
);
}
+ /**
+ * @param $page
+ * @param null $contactID
+ */
static function checkUserPermission($page, $contactID = NULL) {
// check for permissions
$page->_permission = NULL;
}
}
+ /**
+ * @return string
+ */
function getTemplateFileName() {
if ($this->_contactId) {
- $contactSubtypes = $this->get('contactSubtype') ?
+ $contactSubtypes = $this->get('contactSubtype') ?
explode(CRM_Core_DAO::VALUE_SEPARATOR, $this->get('contactSubtype')) : array();
// there could be multiple subtypes. We check templates for each of the subtype, and return the first one found.
*/
static $_links = NULL;
+ /**
+ * @throws Exception
+ */
function __construct() {
parent::__construct();