INFRA-132 - CRM/Financial - Convert single-line @param to multi-line
authorTim Otten <totten@civicrm.org>
Tue, 6 Jan 2015 19:41:08 +0000 (11:41 -0800)
committerTim Otten <totten@civicrm.org>
Tue, 6 Jan 2015 23:02:28 +0000 (15:02 -0800)
CRM/Financial/BAO/FinancialAccount.php
CRM/Financial/BAO/FinancialItem.php
CRM/Financial/BAO/FinancialType.php
CRM/Financial/BAO/FinancialTypeAccount.php
CRM/Financial/BAO/PaymentProcessor.php
CRM/Financial/BAO/PaymentProcessorType.php
CRM/Financial/Page/FinancialTypeAccount.php

index 9a163c5c0344360f0cad7682cda7462476515065..7b550766eaf610ef78c34f9c03fffa42c9690845 100644 (file)
@@ -51,8 +51,10 @@ class CRM_Financial_BAO_FinancialAccount extends CRM_Financial_DAO_FinancialAcco
   /**
    * Fetch object based on array of properties
    *
-   * @param array $params   (reference ) an assoc array of name/value pairs
-   * @param array $defaults (reference ) an assoc array to hold the flattened values
+   * @param array $params
+   *   (reference ) an assoc array of name/value pairs.
+   * @param array $defaults
+   *   (reference ) an assoc array to hold the flattened values.
    *
    * @return CRM_Contribute_BAO_FinancialAccount object
    * @static
@@ -70,8 +72,10 @@ class CRM_Financial_BAO_FinancialAccount extends CRM_Financial_DAO_FinancialAcco
   /**
    * Update the is_active flag in the db
    *
-   * @param int      $id        id of the database record
-   * @param boolean  $is_active value we want to set the is_active field
+   * @param int $id
+   *   Id of the database record.
+   * @param bool $is_active
+   *   Value we want to set the is_active field.
    *
    * @return Object             DAO object on sucess, null otherwise
    * @static
@@ -83,8 +87,10 @@ class CRM_Financial_BAO_FinancialAccount extends CRM_Financial_DAO_FinancialAcco
   /**
    * Add the financial types
    *
-   * @param array $params reference array contains the values submitted by the form
-   * @param array $ids    reference array contains the id
+   * @param array $params
+   *   Reference array contains the values submitted by the form.
+   * @param array $ids
+   *   Reference array contains the id.
    *
    * @static
    * @return object
@@ -177,9 +183,11 @@ WHERE cft.id = %1
   /**
    * Get AR account
    *
-   * @param $financialAccountId financial account id
+   * @param $financialAccountId
+   *   Financial account id.
    *
-   * @param $financialAccountTypeId financial account type id
+   * @param $financialAccountTypeId
+   *   Financial account type id.
    *
    * @param \account|string $accountTypeCode account type code
    *
index a96409be46445fc78bd425b6490fa223057f6190..1c1df72439da7014a22a0dd97d5e844c3c9bc9c0 100644 (file)
@@ -45,8 +45,10 @@ class CRM_Financial_BAO_FinancialItem extends CRM_Financial_DAO_FinancialItem {
   /**
    * Fetch object based on array of properties
    *
-   * @param array $params   (reference ) an assoc array of name/value pairs
-   * @param array $defaults (reference ) an assoc array to hold the flattened values
+   * @param array $params
+   *   (reference ) an assoc array of name/value pairs.
+   * @param array $defaults
+   *   (reference ) an assoc array to hold the flattened values.
    *
    * @return CRM_Contribute_BAO_FinancialItem object
    * @static
@@ -64,9 +66,11 @@ class CRM_Financial_BAO_FinancialItem extends CRM_Financial_DAO_FinancialItem {
   /**
    * Add the financial items and financial trxn
    *
-   * @param object $lineItem     line item object
-   * @param object $contribution contribution object
-   * @param boolean $taxTrxnID
+   * @param object $lineItem
+   *   Line item object.
+   * @param object $contribution
+   *   Contribution object.
+   * @param bool $taxTrxnID
    *
    * @static
    * @return void
@@ -127,9 +131,12 @@ class CRM_Financial_BAO_FinancialItem extends CRM_Financial_DAO_FinancialItem {
   /**
    * Create the financial Items and financial enity trxn
    *
-   * @param array $params  associated array to create financial items
-   * @param array $ids financial item ids
-   * @param array $trxnIds financial item ids
+   * @param array $params
+   *   Associated array to create financial items.
+   * @param array $ids
+   *   Financial item ids.
+   * @param array $trxnIds
+   *   Financial item ids.
    *
    * @static
    * @return object
@@ -177,7 +184,8 @@ class CRM_Financial_BAO_FinancialItem extends CRM_Financial_DAO_FinancialItem {
   /**
    * Takes an associative array and creates a entity financial transaction object
    *
-   * @param array  $params (reference ) an assoc array of name/value pairs
+   * @param array $params
+   *   (reference ) an assoc array of name/value pairs.
    *
    * @return CRM_Core_BAO_FinancialTrxn object
    * @static
@@ -192,8 +200,10 @@ class CRM_Financial_BAO_FinancialItem extends CRM_Financial_DAO_FinancialItem {
   /**
    * Retrive entity financial trxn details
    *
-   * @param array $params (reference ) an assoc array of name/value pairs
-   * @param bool $maxId to retrive max id
+   * @param array $params
+   *   (reference ) an assoc array of name/value pairs.
+   * @param bool $maxId
+   *   To retrive max id.
    *
    * @return array
    * @static
@@ -229,9 +239,11 @@ class CRM_Financial_BAO_FinancialItem extends CRM_Financial_DAO_FinancialItem {
    *
    * CRM-12929
    *
-   * @param array $contactIds  an array contact id's
+   * @param array $contactIds
+   *   An array contact id's.
    *
-   * @param array $error error to display
+   * @param array $error
+   *   Error to display.
    *
    * @return array
    * @static
index c86c7a285458c488bec8aed33de31f74972760a9..061e3b3ae33d3464e290e4d5b5ed4abf07ce6b7a 100644 (file)
@@ -51,8 +51,10 @@ class CRM_Financial_BAO_FinancialType extends CRM_Financial_DAO_FinancialType {
   /**
    * Fetch object based on array of properties
    *
-   * @param array $params   (reference ) an assoc array of name/value pairs
-   * @param array $defaults (reference ) an assoc array to hold the flattened values
+   * @param array $params
+   *   (reference ) an assoc array of name/value pairs.
+   * @param array $defaults
+   *   (reference ) an assoc array to hold the flattened values.
    *
    * @return CRM_Contribute_BAO_ContributionType object
    * @static
@@ -70,8 +72,10 @@ class CRM_Financial_BAO_FinancialType extends CRM_Financial_DAO_FinancialType {
   /**
    * Update the is_active flag in the db
    *
-   * @param int      $id        id of the database record
-   * @param boolean  $is_active value we want to set the is_active field
+   * @param int $id
+   *   Id of the database record.
+   * @param bool $is_active
+   *   Value we want to set the is_active field.
    *
    * @return Object             DAO object on sucess, null otherwise
    * @static
@@ -83,8 +87,10 @@ class CRM_Financial_BAO_FinancialType extends CRM_Financial_DAO_FinancialType {
   /**
    * Add the financial types
    *
-   * @param array $params reference array contains the values submitted by the form
-   * @param array $ids    reference array contains the id
+   * @param array $params
+   *   Reference array contains the values submitted by the form.
+   * @param array $ids
+   *   Reference array contains the id.
    *
    * @static
    * @return object
index 9001f6635f9cf5577dadf79303036dd025b5ae77..d6f9faa0c112b4e878b0dfb767c0e2e29a2e9ea6 100644 (file)
@@ -52,8 +52,10 @@ class CRM_Financial_BAO_FinancialTypeAccount extends CRM_Financial_DAO_EntityFin
   /**
    * Fetch object based on array of properties
    *
-   * @param array $params (reference ) an assoc array of name/value pairs
-   * @param array $defaults (reference ) an assoc array to hold the flattened values
+   * @param array $params
+   *   (reference ) an assoc array of name/value pairs.
+   * @param array $defaults
+   *   (reference ) an assoc array to hold the flattened values.
    *
    * @param array $allValues
    *
@@ -74,8 +76,10 @@ class CRM_Financial_BAO_FinancialTypeAccount extends CRM_Financial_DAO_EntityFin
   /**
    * Add the financial types
    *
-   * @param array $params reference array contains the values submitted by the form
-   * @param array $ids    reference array contains the id
+   * @param array $params
+   *   Reference array contains the values submitted by the form.
+   * @param array $ids
+   *   Reference array contains the id.
    *
    * @static
    * @return object
@@ -162,7 +166,8 @@ class CRM_Financial_BAO_FinancialTypeAccount extends CRM_Financial_DAO_EntityFin
    *
    * @param string $entityTable
    *
-   * @param string $columnName Column to fetch
+   * @param string $columnName
+   *   Column to fetch.
    *
    * @return null|string
    * @static
@@ -186,7 +191,8 @@ AND entity_id = %2";
   /**
    * Financial Account for payment instrument
    *
-   * @param int $paymentInstrumentValue payment instrument value
+   * @param int $paymentInstrumentValue
+   *   Payment instrument value.
    *
    * @return array|null|string
    * @static
index c606efb868c3999c5183193edcad57c3b770f634..1d33f68f3f640b7b4ed306cbe610fc8c79b31348 100644 (file)
@@ -46,7 +46,8 @@ class CRM_Financial_BAO_PaymentProcessor extends CRM_Financial_DAO_PaymentProces
   /**
    * Create Payment Processor
    *
-   * @param array $params parameters for Processor entity
+   * @param array $params
+   *   Parameters for Processor entity.
    *
    * @return CRM_Financial_DAO_PaymentProcessor
    * @throws Exception
@@ -96,8 +97,10 @@ class CRM_Financial_BAO_PaymentProcessor extends CRM_Financial_DAO_PaymentProces
    * retrieves the relevant objects. It also stores all the retrieved
    * values in the default array
    *
-   * @param array $params   (reference ) an assoc array of name/value pairs
-   * @param array $defaults (reference ) an assoc array to hold the flattened values
+   * @param array $params
+   *   (reference ) an assoc array of name/value pairs.
+   * @param array $defaults
+   *   (reference ) an assoc array to hold the flattened values.
    *
      * @return CRM_Financial_DAO_PaymentProcessor object on success, null otherwise
    * @static
@@ -115,8 +118,10 @@ class CRM_Financial_BAO_PaymentProcessor extends CRM_Financial_DAO_PaymentProces
   /**
    * Update the is_active flag in the db
    *
-   * @param int      $id        id of the database record
-   * @param boolean  $is_active value we want to set the is_active field
+   * @param int $id
+   *   Id of the database record.
+   * @param bool $is_active
+   *   Value we want to set the is_active field.
    *
    * @return Object             DAO object on sucess, null otherwise
    *
@@ -174,8 +179,10 @@ class CRM_Financial_BAO_PaymentProcessor extends CRM_Financial_DAO_PaymentProces
   /**
    * Get the payment processor details
    *
-   * @param  int    $paymentProcessorID payment processor id
-   * @param  string $mode               payment mode ie test or live
+   * @param int $paymentProcessorID
+   *   Payment processor id.
+   * @param string $mode
+   *   Payment mode ie test or live.
    *
    * @return array  associated array with payment processor related fields
    * @static
@@ -248,8 +255,10 @@ class CRM_Financial_BAO_PaymentProcessor extends CRM_Financial_DAO_PaymentProces
   /**
    * Build payment processor details
    *
-   * @param object $dao   payment processor object
-   * @param  string $mode payment mode ie test or live
+   * @param object $dao
+   *   Payment processor object.
+   * @param string $mode
+   *   Payment mode ie test or live.
    *
    * @return array  associated array with payment processor related fields
    * @static
@@ -382,8 +391,10 @@ class CRM_Financial_BAO_PaymentProcessor extends CRM_Financial_DAO_PaymentProces
    * Retrieve payment processor id / info/ object based on component-id.
    *
    * @param int $entityID
-   * @param string $component component
-   * @param string $type type of payment information to be retrieved
+   * @param string $component
+   *   Component.
+   * @param string $type
+   *   Type of payment information to be retrieved.
    *
    * @return int / array / object based on type
    * @static
index cae630b5dbd0c0be86885f6afd789f1d32493816..1335d0be69e52e17ae54ef5e1572d670c1284867 100644 (file)
@@ -49,8 +49,10 @@ class CRM_Financial_BAO_PaymentProcessorType extends CRM_Financial_DAO_PaymentPr
   /**
    * Fetch object based on array of properties
    *
-   * @param array $params   (reference ) an assoc array of name/value pairs
-   * @param array $defaults (reference ) an assoc array to hold the flattened values
+   * @param array $params
+   *   (reference ) an assoc array of name/value pairs.
+   * @param array $defaults
+   *   (reference ) an assoc array to hold the flattened values.
    *
    * @return CRM_Core_BAO_LocaationType object on success, null otherwise
    * @static
@@ -68,8 +70,10 @@ class CRM_Financial_BAO_PaymentProcessorType extends CRM_Financial_DAO_PaymentPr
   /**
    * Update the is_active flag in the db
    *
-   * @param int      $id        id of the database record
-   * @param boolean  $is_active value we want to set the is_active field
+   * @param int $id
+   *   Id of the database record.
+   * @param bool $is_active
+   *   Value we want to set the is_active field.
    *
    * @return Object             DAO object on sucess, null otherwise
    *
@@ -100,7 +104,8 @@ class CRM_Financial_BAO_PaymentProcessorType extends CRM_Financial_DAO_PaymentPr
   /**
    * Add the payment-processor type in the db
    *
-   * @param array $params (reference ) an assoc array of name/value pairs
+   * @param array $params
+   *   (reference ) an assoc array of name/value pairs.
    *
    * @throws Exception
    * @return CRM_Financial_DAO_PaymentProcessorType
@@ -168,7 +173,8 @@ class CRM_Financial_BAO_PaymentProcessorType extends CRM_Financial_DAO_PaymentPr
   /**
    * Delete payment processor
    *
-   * @param  int $paymentProcessorTypeId ID of the processor to be deleted.
+   * @param int $paymentProcessorTypeId
+   *   ID of the processor to be deleted.
    *
    * @return bool
    * @static
index a3d265bc4bd7cbeed99e01a61bebceabe4a64ef3..aa90c652c8d77f2f806cf554d413fad674d2a497 100644 (file)
@@ -200,7 +200,8 @@ class CRM_Financial_Page_FinancialTypeAccount extends CRM_Core_Page {
    * editing would involved modifying existing financial Account Type + adding data
    * to new financial Account Type.
    *
-   * @param string $action the action to be invoked
+   * @param string $action
+   *   The action to be invoked.
    *
    * @return void
    */