X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FHook.php;h=915f8309431192acfcdb73fedf938ff603944b51;hb=0d259bef5d711eeda394d0694e43349dec7a0ebb;hp=25dec213049ecbb47f03cf847a1cf9247692e185;hpb=ff366e826aa892b9df6540a99f58ca9bc77577ba;p=civicrm-core.git diff --git a/CRM/Utils/Hook.php b/CRM/Utils/Hook.php index 25dec21304..915f830943 100644 --- a/CRM/Utils/Hook.php +++ b/CRM/Utils/Hook.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 4.6 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2014 | + | Copyright CiviCRM LLC (c) 2004-2015 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -28,7 +28,7 @@ /** * * @package CiviCRM_Hook - * @copyright CiviCRM LLC (c) 2004-2014 + * @copyright CiviCRM LLC (c) 2004-2015 * $Id: $ * */ @@ -424,7 +424,7 @@ abstract class CRM_Utils_Hook { } /** - * This hook is called before a db write on a custom table. + * This hook is called after a db write on a custom table. * * @param string $op * The type of operation being performed. @@ -587,7 +587,9 @@ abstract class CRM_Utils_Hook { * - name: string, eg "sql:civicrm_email:contact_id" * - type: string, eg "sql" * - count: int, eg "5" if there are 5 email addresses that refer to $dao - * @return void + * + * @return mixed + * Return is not really intended to be used. */ public static function referenceCounts($dao, &$refCounts) { return self::singleton()->invoke(2, $dao, $refCounts, @@ -925,17 +927,22 @@ abstract class CRM_Utils_Hook { * * Definition will look like this: * - * function hook_civicrm_alterPaymentProcessorParams($paymentObj, - * &$rawParams, &$cookedParams); + * function hook_civicrm_alterPaymentProcessorParams( + * $paymentObj, + * &$rawParams, + * &$cookedParams + * ); * - * @param string $paymentObj - * instance of payment class of the payment processor invoked (e.g., 'CRM_Core_Payment_Dummy') + * @param CRM_Core_Payment $paymentObj + * Instance of payment class of the payment processor invoked (e.g., 'CRM_Core_Payment_Dummy') + * See discussion in CRM-16224 as to whether $paymentObj should be passed by reference. * @param array &$rawParams * array of params as passed to to the processor * @param array &$cookedParams * params after the processor code has translated them into its own key/value pairs * * @return mixed + * This return is not really intended to be used. */ public static function alterPaymentProcessorParams( $paymentObj,