Skip to content

Commit

Permalink
Merge pull request #9573 from totten/master-inheritdoc
Browse files Browse the repository at this point in the history
(NFC) CRM_*_Tokens - Reduce redundant docs
  • Loading branch information
totten authored Dec 29, 2016
2 parents 6ede0e6 + 298795c commit d96ee4e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 60 deletions.
21 changes: 5 additions & 16 deletions CRM/Activity/Tokens.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,7 @@ public function __construct() {
}

/**
* Check is 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.
Expand All @@ -69,6 +65,9 @@ public function checkActive(\Civi\Token\TokenProcessor $processor) {
&& $processor->context['actionMapping']->getEntity() === 'civicrm_activity';
}

/**
* @inheritDoc
*/
public function alterActionScheduleQuery(\Civi\ActionSchedule\Event\MailingQueryEvent $e) {
if ($e->mapping->getEntity() !== 'civicrm_activity') {
return;
Expand All @@ -94,17 +93,7 @@ public function alterActionScheduleQuery(\Civi\ActionSchedule\Event\MailingQuery
}

/**
* 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'];
Expand Down
13 changes: 1 addition & 12 deletions CRM/Contribute/Tokens.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,18 +109,7 @@ public function alterActionScheduleQuery(\Civi\ActionSchedule\Event\MailingQuery
}

/**
* 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
* @throws \CRM_Core_Exception
* @inheritDoc
*/
public function evaluateToken(\Civi\Token\TokenRow $row, $entity, $field, $prefetch = NULL) {
$actionSearchResult = $row->context['actionSearchResult'];
Expand Down
18 changes: 2 additions & 16 deletions CRM/Event/Tokens.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,7 @@ public function __construct() {
}

/**
* 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.
Expand Down Expand Up @@ -95,17 +91,7 @@ public function alterActionScheduleQuery(\Civi\ActionSchedule\Event\MailingQuery
}

/**
* 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'];
Expand Down
18 changes: 2 additions & 16 deletions CRM/Member/Tokens.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,7 @@ public function __construct() {
}

/**
* Is token 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.
Expand All @@ -83,17 +79,7 @@ public function alterActionScheduleQuery(\Civi\ActionSchedule\Event\MailingQuery
}

/**
* 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'];
Expand Down

0 comments on commit d96ee4e

Please sign in to comment.