/** * * @return CRM_Tokens_Broodfonds */ public static function singleton() { if (!self::$singelton) { self::$singelton = new CRM_Tokens_Broodfonds(); } return self::$singelton; }
function tokens_civicrm_tokenValues(&$values, $cids, $job = null, $tokens = array(), $context = null) { if (!empty($tokens['tokens'])) { if (in_array('today', $tokens['tokens']) || array_key_exists('today', $tokens['tokens'])) { tokens_today($values, $cids, $job, $tokens, $context); } } $broodfonds_tokens = CRM_Tokens_Broodfonds::singleton(); $broodfonds_tokens->tokenValues($values, $cids, $job, $tokens, $context); }