X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FEvent%2FTokens.php;h=2a502554405813ced5cf36641c7bf85184760b48;hb=8246bca46f06d6d5af8cbb5736848f11e8d3eb18;hp=48949e7be09437d3b1930995aaa75b26e7b82a7d;hpb=027a36872cf94f3318ffea9ee610c562ad8cbc90;p=civicrm-core.git diff --git a/CRM/Event/Tokens.php b/CRM/Event/Tokens.php index 48949e7be0..2a50255440 100644 --- a/CRM/Event/Tokens.php +++ b/CRM/Event/Tokens.php @@ -4,7 +4,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 4.7 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2015 | + | Copyright CiviCRM LLC (c) 2004-2017 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -63,11 +63,7 @@ class CRM_Event_Tokens extends \Civi\Token\AbstractTokenSubscriber { } /** - * Check something about being active. - * - * @param \Civi\Token\TokenProcessor $processor - * - * @return bool + * @inheritDoc */ public function checkActive(\Civi\Token\TokenProcessor $processor) { // Extracted from scheduled-reminders code. See the class description. @@ -76,6 +72,11 @@ class CRM_Event_Tokens extends \Civi\Token\AbstractTokenSubscriber { && $processor->context['actionMapping']->getEntity() === 'civicrm_participant'; } + /** + * Alter action schedule query. + * + * @param \Civi\ActionSchedule\Event\MailingQueryEvent $e + */ public function alterActionScheduleQuery(\Civi\ActionSchedule\Event\MailingQueryEvent $e) { if ($e->mapping->getEntity() !== 'civicrm_participant') { return; @@ -95,17 +96,7 @@ LEFT JOIN civicrm_phone phone ON phone.id = lb.phone_id } /** - * Evaluate the content of a single token. - * - * @param \Civi\Token\TokenRow $row - * The record for which we want token values. - * @param string $entity - * @param string $field - * The name of the token field. - * @param mixed $prefetch - * Any data that was returned by the prefetch(). - * - * @return mixed + * @inheritDoc */ public function evaluateToken(\Civi\Token\TokenRow $row, $entity, $field, $prefetch = NULL) { $actionSearchResult = $row->context['actionSearchResult'];