X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FHook.php;h=915f8309431192acfcdb73fedf938ff603944b51;hb=0d259bef5d711eeda394d0694e43349dec7a0ebb;hp=8f7819909ce6d59039b1f4b8e68ad930bffbc1c7;hpb=80bcd2553c4919c38a0c6ec6c8ca2bba5b255538;p=civicrm-core.git diff --git a/CRM/Utils/Hook.php b/CRM/Utils/Hook.php index 8f7819909c..915f830943 100644 --- a/CRM/Utils/Hook.php +++ b/CRM/Utils/Hook.php @@ -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,13 +927,15 @@ abstract class CRM_Utils_Hook { * * Definition will look like this: * - * function hook_civicrm_alterPaymentProcessorParams($paymentObj, - * &$rawParams, &$cookedParams); - * - * See discussion in CRM-16224 as to whether $paymentObj should be passed by reference. + * 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