a few comment fixes
authorEileen McNaughton <eileen@fuzion.co.nz>
Sun, 1 Feb 2015 21:39:41 +0000 (10:39 +1300)
committerEileen McNaughton <eileen@fuzion.co.nz>
Sun, 1 Feb 2015 21:39:41 +0000 (10:39 +1300)
56 files changed:
CRM/Admin/Page/ExtensionsUpgrade.php
CRM/Contact/Form/Edit/Notes.php
CRM/Contact/Form/Search/Interface.php
CRM/Contact/Import/Controller.php
CRM/Contribute/Import/Controller.php
CRM/Core/BAO/UFMatch.php
CRM/Core/DAO.php
CRM/Core/Smarty/plugins/function.crmDBTpl.php
CRM/Core/Smarty/plugins/function.crmSetting.php
CRM/Mailing/Info.php
CRM/Mailing/Page/Common.php
CRM/Mailing/Page/Optout.php
CRM/Mailing/Page/Unsubscribe.php
CRM/Report/Form/Case/TimeSpent.php
CRM/Report/Form/Contact/CurrentEmployer.php
CRM/Report/Form/Contact/Detail.php
CRM/Report/Form/Contact/Log.php
CRM/Report/Form/Contact/LoggingSummary.php
CRM/Report/Form/Contact/Relationship.php
CRM/Report/Form/Contact/Summary.php
CRM/Report/Form/Contribute/Bookkeeping.php
CRM/Report/Form/Contribute/Detail.php
CRM/Report/Form/Contribute/History.php
CRM/Report/Form/Contribute/HouseholdSummary.php
CRM/Report/Form/Contribute/LoggingSummary.php
CRM/Report/Form/Contribute/Lybunt.php
CRM/Report/Form/Contribute/OrganizationSummary.php
CRM/Report/Form/Contribute/PCP.php
CRM/Report/Form/Contribute/Recur.php
CRM/Report/Form/Contribute/Repeat.php
CRM/Report/Form/Contribute/SoftCredit.php
CRM/Report/Form/Contribute/Summary.php
CRM/Report/Form/Contribute/Sybunt.php
CRM/Report/Form/Contribute/TopDonor.php
CRM/Report/Form/Event/Income.php
CRM/Report/Form/Event/IncomeCountSummary.php
CRM/Report/Form/Event/ParticipantListCount.php
CRM/Report/Form/Event/ParticipantListing.php
CRM/Report/Form/Event/Summary.php
CRM/Report/Form/Extended.php
CRM/Report/Form/Grant/Detail.php
CRM/Report/Form/Grant/Statistics.php
CRM/Report/Form/Mailing/Bounce.php
CRM/Report/Form/Mailing/Clicks.php
CRM/Report/Form/Mailing/Detail.php
CRM/Report/Form/Mailing/Opened.php
CRM/Report/Form/Mailing/Summary.php
CRM/Report/Form/Member/Detail.php
CRM/Report/Form/Member/Lapse.php
CRM/Report/Form/Member/Summary.php
CRM/Report/Form/Membership/Summary.php
CRM/Report/Form/Pledge/Detail.php
CRM/Report/Form/Pledge/Pbnp.php
CRM/Report/Form/Pledge/Summary.php
CRM/Report/Form/Walklist/Walklist.php
tests/phpunit/api/v3/SyntaxConformanceTest.php

index c453e07eddd8139bcea15ef636028b4eca39de9b..59f91f76def5f87eb3327e3fa31397f3a45f17d8 100644 (file)
@@ -26,6 +26,8 @@ class CRM_Admin_Page_ExtensionsUpgrade extends CRM_Core_Page {
 
   /**
    * Handle the final step of the queue
+   *
+   * @param \CRM_Queue_TaskContext $ctx
    */
   public static function onEnd(CRM_Queue_TaskContext $ctx) {
     CRM_Core_Error::debug_log_message('CRM_Admin_Page_ExtensionsUpgrade: Finish upgrades');
index 4c8dc6134fcaa53a6fac5aea3b74f18d47f3b000..59d15bd2cf5a6ad877b7347db9be2766bb7a999f 100644 (file)
@@ -38,6 +38,7 @@ class CRM_Contact_Form_Edit_Notes {
    * build form elements
    * params object $form object of the form
    *
+   * @param $form
    */
   public static function buildQuickForm(&$form) {
     $form->applyFilter('__ALL__', 'trim');
index 27c77bb220c3553188dd95d291f0e9c5776cddec..f99e40190b1f1d46ad23140adcc6426db9d6cf9b 100644 (file)
@@ -36,6 +36,8 @@ interface CRM_Contact_Form_Search_Interface {
 
   /**
    * The constructor gets the submitted form values
+   *
+   * @param $formValues
    */
   public function __construct(&$formValues);
 
index afab3e087855a78a132251375eed03518ca621e6..8769d3f222f7d80ae7c69b06a5a853e5997976e1 100644 (file)
@@ -36,6 +36,10 @@ class CRM_Contact_Import_Controller extends CRM_Core_Controller {
 
   /**
    * Class constructor
+   *
+   * @param null $title
+   * @param bool|int $action
+   * @param bool $modal
    */
   public function __construct($title = NULL, $action = CRM_Core_Action::NONE, $modal = TRUE) {
     parent::__construct($title, $modal);
index 6c33167523f1fa26ac2babe3608b4e75a25b89b4..ed3d44e3bff0c17d77e8f01d5930f5614efaa1f0 100644 (file)
@@ -36,6 +36,10 @@ class CRM_Contribute_Import_Controller extends CRM_Core_Controller {
 
   /**
    * Class constructor
+   *
+   * @param null $title
+   * @param bool|int $action
+   * @param bool $modal
    */
   public function __construct($title = NULL, $action = CRM_Core_Action::NONE, $modal = TRUE) {
     parent::__construct($title, $modal);
index f4f0716ce2417d86300412a951768fd8162f14aa..bda036d8efa55ee5a710a0e06ead429d0d870a91 100644 (file)
@@ -41,7 +41,9 @@ class CRM_Core_BAO_UFMatch extends CRM_Core_DAO_UFMatch {
   /**
    * Create UF Match, Note that thsi function is here in it's simplest form @ the moment
    *
-   * @return CRM_Core_DAO_UFMatch
+   * @param $params
+   *
+   * @return \CRM_Core_DAO_UFMatch
    */
   public static function create($params) {
     $hook = empty($params['id']) ? 'create' : 'edit';
index 8b382d70dfd653cd9a6b410305f53b5ed9070bcd..32fb178dd98f1ccfbd981c2c60a6986f8d808045 100644 (file)
@@ -23,7 +23,7 @@
   | GNU Affero General Public License or the licensing of CiviCRM,     |
   | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
   +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * Our base DAO class. All DAO classes should inherit from this class.
index 24bd0c910e6997c34b5f1bb539694be098a8b500..074c1babf0c272f99ca3778717f92461cc310b70 100644 (file)
@@ -37,6 +37,8 @@
  * load a context. If name is asked for only name data is returned.
  * And if name is not provided whole context is returned.
  *
+ * @param $params
+ * @param $smarty
  */
 function smarty_function_crmDBTpl($params, &$smarty) {
   // $vars = array('context', 'name', 'assign' ); out of which name is optional
index bf995738f7356b6528c5478ab540a1ef1995d018..4cc6dd45a63aa92002a71601659e4186f689222d 100644 (file)
  */
 
 /**
- * Retrieve CiviCRM settings from the api for use in templates
+ * Retrieve CiviCRM settings from the api for use in templates.
+ *
+ * @param $params
+ * @param $smarty
+ *
+ * @return int|string|void
  */
 function smarty_function_crmSetting($params, &$smarty) {
 
index 3047215fa0e8691de51d732b2ed111cc062c97a7..480e936d0980514d255d4dd17218038de8210f79 100644 (file)
@@ -57,6 +57,13 @@ class CRM_Mailing_Info extends CRM_Core_Component_Info {
     );
   }
 
+  /**
+   * EXPERIMENTAL: Get a list of AngularJS modules
+   *
+   * @return array
+   *   list of modules; same format as CRM_Utils_Hook::angularModules(&$angularModules)
+   * @see CRM_Utils_Hook::angularModules
+   */
   public function getAngularModules() {
     $result = array();
     $result['crmMailing'] = array(
index 769fc8b7746c226f48ad4038e9d1c956a2b18727..6863aa338a5ad53eb79f0a471a5a932b3471d36c 100644 (file)
@@ -36,6 +36,10 @@ class CRM_Mailing_Page_Common extends CRM_Core_Page {
   protected $_type = NULL;
 
   /**
+   * Run page.
+   *
+   * This includes assigning smarty variables and other page processing.
+   *
    * @return string
    * @throws Exception
    */
index 9816c3e273ba079f601ea1f489b5d8ad304928e1..7e7a864f134b4c7516a69707f172ab620ca89609 100644 (file)
  *
  */
 class CRM_Mailing_Page_Optout extends CRM_Mailing_Page_Common {
+  /**
+   * Run page.
+   *
+   * This includes assigning smarty variables and other page processing.
+   *
+   * @return string
+   * @throws Exception
+   */
   public function run() {
     $this->_type = 'optout';
     return parent::run();
index 68da0466c5c89c78ec458ea36ad6b2e435326367..398e8e63255d3f2b20ac78dd1d5bf685a03746a3 100644 (file)
  */
 class CRM_Mailing_Page_Unsubscribe extends CRM_Mailing_Page_Common {
 
+  /**
+   * Run page.
+   *
+   * This includes assigning smarty variables and other page processing.
+   *
+   * @return string
+   * @throws Exception
+   */
   public function run() {
     $this->_type = 'unsubscribe';
     return parent::run();
index 2c4b9f299a6a8578aa2874efdee69bb49c7b3c94..da3be99194410833e097ad495f55cdd41dcc1db1 100644 (file)
@@ -319,10 +319,15 @@ GROUP BY {$this->_aliases['civicrm_contact']}.id,
   }
 
   /**
-   * @param $rows
+   * Alter display of rows.
+   *
+   * Iterate through the rows retrieved via SQL and make changes for display purposes,
+   * such as rendering contacts as links.
+   *
+   * @param array $rows
+   *   Rows generated by SQL, with an array for each row.
    */
   public function alterDisplay(&$rows) {
-    // custom code to alter rows
 
     $entryFound = FALSE;
     foreach ($rows as $rowNum => $row) {
index 5891d939391fc11d2e98d09bd35c8bba62e17ad7..61ed1e96cb7ac20c6fb5de1e2523079a9fe41f36 100644 (file)
@@ -303,10 +303,15 @@ FROM civicrm_contact {$this->_aliases['civicrm_contact']}
   }
 
   /**
-   * @param $rows
+   * Alter display of rows.
+   *
+   * Iterate through the rows retrieved via SQL and make changes for display purposes,
+   * such as rendering contacts as links.
+   *
+   * @param array $rows
+   *   Rows generated by SQL, with an array for each row.
    */
   public function alterDisplay(&$rows) {
-    // custom code to alter rows
     $checkList = array();
     $entryFound = FALSE;
 
index 5da23323b27d2545728cc69ea8b173f5e96ec7b6..d5ac31b786160ed7dbca170ed0327bfba5682cf0 100644 (file)
@@ -804,10 +804,15 @@ class CRM_Report_Form_Contact_Detail extends CRM_Report_Form {
   }
 
   /**
-   * @param $rows
+   * Alter display of rows.
+   *
+   * Iterate through the rows retrieved via SQL and make changes for display purposes,
+   * such as rendering contacts as links.
+   *
+   * @param array $rows
+   *   Rows generated by SQL, with an array for each row.
    */
   public function alterDisplay(&$rows) {
-    // custom code to alter rows
 
     $entryFound = FALSE;
 
index 3e40d2b6c7521e612f152e51924de6ccb9698c53..9c7de0f294a22cf693c2a01c0d41ad9b281c5a5e 100644 (file)
@@ -236,10 +236,16 @@ ORDER BY {$this->_aliases['civicrm_log']}.modified_date DESC, {$this->_aliases['
   }
 
   /**
-   * @param $rows
+   * Alter display of rows.
+   *
+   * Iterate through the rows retrieved via SQL and make changes for display purposes,
+   * such as rendering contacts as links.
+   *
+   * @param array $rows
+   *   Rows generated by SQL, with an array for each row.
    */
   public function alterDisplay(&$rows) {
-    // custom code to alter rows
+
     $entryFound = FALSE;
     foreach ($rows as $rowNum => $row) {
       // convert display name to links
index c3b62f978621591d90f0c6ed3b9ed106fb82f0dd..7f8428a235797546426689c749f30a6953edf5ce 100644 (file)
@@ -161,10 +161,13 @@ class CRM_Report_Form_Contact_LoggingSummary extends CRM_Logging_ReportSummary {
   }
 
   /**
-   * Alter Report Display.
+   * Alter display of rows.
+   *
+   * Iterate through the rows retrieved via SQL and make changes for display purposes,
+   * such as rendering contacts as links.
    *
    * @param array $rows
-   *   Rows from report query.
+   *   Rows generated by SQL, with an array for each row.
    */
   public function alterDisplay(&$rows) {
     // cache for id â†’ is_deleted mapping
index 65f4f2b6e36dbd20952de79e9b010aa5088369c7..3ce434453b36841ce3392cdb9b0d5a3722c3b3f9 100644 (file)
@@ -44,6 +44,9 @@ class CRM_Report_Form_Contact_Relationship extends CRM_Report_Form {
   );
   public $_drilldownReport = array('contact/detail' => 'Link to Detail Report');
 
+  /**
+   * Class constructor.
+   */
   public function __construct() {
 
     $contact_type = CRM_Contact_BAO_ContactType::getSelectElements(FALSE, TRUE, '_');
@@ -557,10 +560,15 @@ class CRM_Report_Form_Contact_Relationship extends CRM_Report_Form {
   }
 
   /**
-   * @param $rows
+   * Alter display of rows.
+   *
+   * Iterate through the rows retrieved via SQL and make changes for display purposes,
+   * such as rendering contacts as links.
+   *
+   * @param array $rows
+   *   Rows generated by SQL, with an array for each row.
    */
   public function alterDisplay(&$rows) {
-    // custom code to alter rows
     $entryFound = FALSE;
 
     foreach ($rows as $rowNum => $row) {
index c9a02a7ea087f29d8b47f6f3393ae709059119f8..a5e591e2e67cd12836dc9915eb4c6f433a691824 100644 (file)
@@ -271,8 +271,16 @@ class CRM_Report_Form_Contact_Summary extends CRM_Report_Form {
     $entryFound = TRUE;
   }
 
+  /**
+   * Alter display of rows.
+   *
+   * Iterate through the rows retrieved via SQL and make changes for display purposes,
+   * such as rendering contacts as links.
+   *
+   * @param array $rows
+   *   Rows generated by SQL, with an array for each row.
+   */
   public function alterDisplay(&$rows) {
-    // custom code to alter rows
     $entryFound = FALSE;
 
     $genders = CRM_Core_PseudoConstant::get('CRM_Contact_DAO_Contact', 'gender_id', array('localize' => TRUE));
index eda3a2fe165cf44b650378e9d5b6f6deb2d2dc5c..9356b5de16c5b54dc2f591fa3171200b8b690c30 100644 (file)
@@ -468,7 +468,13 @@ class CRM_Report_Form_Contribute_Bookkeeping extends CRM_Report_Form {
   }
 
   /**
-   * @param $rows
+   * Alter display of rows.
+   *
+   * Iterate through the rows retrieved via SQL and make changes for display purposes,
+   * such as rendering contacts as links.
+   *
+   * @param array $rows
+   *   Rows generated by SQL, with an array for each row.
    */
   public function alterDisplay(&$rows) {
     $contributionTypes = CRM_Contribute_PseudoConstant::financialType();
index d012d3edc3a4dc431785f94f842bd13550eef00d..a0da79cf73184647d3692c9cf2e9c148885170a8 100644 (file)
@@ -631,10 +631,15 @@ UNION ALL
   }
 
   /**
-   * @param $rows
+   * Alter display of rows.
+   *
+   * Iterate through the rows retrieved via SQL and make changes for display purposes,
+   * such as rendering contacts as links.
+   *
+   * @param array $rows
+   *   Rows generated by SQL, with an array for each row.
    */
   public function alterDisplay(&$rows) {
-    // custom code to alter rows
     $checkList = array();
     $entryFound = FALSE;
     $display_flag = $prev_cid = $cid = 0;
index 6731c58ad4081e088102c09be2058dbc0ffe3fd1..e2ac3fc46e4f5ab498dec1919e50a081ed343b5b 100644 (file)
@@ -726,7 +726,13 @@ class CRM_Report_Form_Contribute_History extends CRM_Report_Form {
   }
 
   /**
-   * @param $rows
+   * Alter display of rows.
+   *
+   * Iterate through the rows retrieved via SQL and make changes for display purposes,
+   * such as rendering contacts as links.
+   *
+   * @param array $rows
+   *   Rows generated by SQL, with an array for each row.
    */
   public function alterDisplay(&$rows) {
     if (empty($rows)) {
index f405edacc0148ee7300b5668d58860f009b95267..f58f95fde5149a016cb593c6155cf105e72bbb99 100644 (file)
@@ -404,10 +404,15 @@ class CRM_Report_Form_Contribute_HouseholdSummary extends CRM_Report_Form {
   }
 
   /**
-   * @param $rows
+   * Alter display of rows.
+   *
+   * Iterate through the rows retrieved via SQL and make changes for display purposes,
+   * such as rendering contacts as links.
+   *
+   * @param array $rows
+   *   Rows generated by SQL, with an array for each row.
    */
   public function alterDisplay(&$rows) {
-    // custom code to alter rows
     $type = substr($this->_params['relationship_type_id_value'], -3);
 
     $entryFound = FALSE;
index 15e32f36e214b0e5c695094f5b2df01330bb1957..f8a3742c2ac4055216c6709b4adbe3dc850400ae 100644 (file)
@@ -174,7 +174,13 @@ class CRM_Report_Form_Contribute_LoggingSummary extends CRM_Logging_ReportSummar
   }
 
   /**
-   * @param $rows
+   * Alter display of rows.
+   *
+   * Iterate through the rows retrieved via SQL and make changes for display purposes,
+   * such as rendering contacts as links.
+   *
+   * @param array $rows
+   *   Rows generated by SQL, with an array for each row.
    */
   public function alterDisplay(&$rows) {
     // cache for id â†’ is_deleted mapping
index 07f5b3035d2daa76bc9f0a7ac840727f79bee35e..0fd0009b6a3591a52200bf228cf1503befc58cd5 100644 (file)
@@ -457,10 +457,15 @@ class CRM_Report_Form_Contribute_Lybunt extends CRM_Report_Form {
   }
 
   /**
-   * @param $rows
+   * Alter display of rows.
+   *
+   * Iterate through the rows retrieved via SQL and make changes for display purposes,
+   * such as rendering contacts as links.
+   *
+   * @param array $rows
+   *   Rows generated by SQL, with an array for each row.
    */
   public function alterDisplay(&$rows) {
-    // custom code to alter rows
     $entryFound = FALSE;
 
     foreach ($rows as $rowNum => $row) {
index 80ea71ff5b57a3aa5883e70bddf2715f36fc7d08..dce09084ec2ee0b7e0164518ec7f51e2395f1c88 100644 (file)
@@ -407,10 +407,15 @@ class CRM_Report_Form_Contribute_OrganizationSummary extends CRM_Report_Form {
   }
 
   /**
+   * Alter display of rows.
+   *
+   * Iterate through the rows retrieved via SQL and make changes for display purposes,
+   * such as rendering contacts as links.
+   *
    * @param array $rows
+   *   Rows generated by SQL, with an array for each row.
    */
   public function alterDisplay(&$rows) {
-    // custom code to alter rows
     $type = substr($this->_params['relationship_type_id_value'], -3);
 
     $entryFound = FALSE;
index be9321aa9b1d14c643e3a53f01e91b66c11010b4..009553bad457987d2ab3f466dd785eca260b7d16 100644 (file)
@@ -296,10 +296,15 @@ LEFT JOIN civicrm_contribution_page {$this->_aliases['civicrm_contribution_page'
   }
 
   /**
-   * @param $rows
+   * Alter display of rows.
+   *
+   * Iterate through the rows retrieved via SQL and make changes for display purposes,
+   * such as rendering contacts as links.
+   *
+   * @param array $rows
+   *   Rows generated by SQL, with an array for each row.
    */
   public function alterDisplay(&$rows) {
-    // custom code to alter rows
     $entryFound = FALSE;
     $checkList = array();
     foreach ($rows as $rowNum => $row) {
index 9bf843ce573a9d86361b5d2ed60b3c4858160404..ed52efe38603e068d421b42f4ca897158d798b2b 100644 (file)
@@ -34,6 +34,9 @@
  */
 class CRM_Report_Form_Contribute_Recur extends CRM_Report_Form {
 
+  /**
+   * Class constructor.
+   */
   public function __construct() {
     $this->_columns = array(
       'civicrm_contact' => array(
@@ -209,10 +212,18 @@ class CRM_Report_Form_Contribute_Recur extends CRM_Report_Form {
     parent::__construct();
   }
 
+  /**
+   * Get template file name.
+   *
+   * @return string
+   */
   public function getTemplateName() {
     return 'CRM/Report/Form.tpl';
   }
 
+  /**
+   * Generate FROM SQL clause.
+   */
   public function from() {
     $this->_from = "
       FROM civicrm_contact  {$this->_aliases['civicrm_contact']}
@@ -298,6 +309,15 @@ class CRM_Report_Form_Contribute_Recur extends CRM_Report_Form {
   }
 
 
+  /**
+   * Alter display of rows.
+   *
+   * Iterate through the rows retrieved via SQL and make changes for display purposes,
+   * such as rendering contacts as links.
+   *
+   * @param array $rows
+   *   Rows generated by SQL, with an array for each row.
+   */
   public function alterDisplay(&$rows) {
     $contributionStatus = CRM_Contribute_PseudoConstant::contributionStatus();
     foreach ($rows as $rowNum => $row) {
index e4f6c2739a13aa459cf0e89b31dde68b0892ac56..07b24399e90a6af19679678e0f7420091bb73280 100644 (file)
@@ -895,10 +895,15 @@ currency varchar(3)
   }
 
   /**
-   * @param $rows
+   * Alter display of rows.
+   *
+   * Iterate through the rows retrieved via SQL and make changes for display purposes,
+   * such as rendering contacts as links.
+   *
+   * @param array $rows
+   *   Rows generated by SQL, with an array for each row.
    */
   public function alterDisplay(&$rows) {
-    // custom code to alter rows
     list($from1, $to1) = $this->getFromTo(CRM_Utils_Array::value("receive_date1_relative", $this->_params),
       CRM_Utils_Array::value("receive_date1_from", $this->_params),
       CRM_Utils_Array::value("receive_date1_to", $this->_params)
index ff9e1e76c74f39eb03b6d1b6c6278bd6da48035c..9c6074f1fe49feee9441bef3745a3cc5e31b7ba8 100644 (file)
@@ -470,11 +470,15 @@ GROUP BY   {$this->_aliases['civicrm_contribution']}.currency
   }
 
   /**
-   * @param $rows
+   * Alter display of rows.
+   *
+   * Iterate through the rows retrieved via SQL and make changes for display purposes,
+   * such as rendering contacts as links.
+   *
+   * @param array $rows
+   *   Rows generated by SQL, with an array for each row.
    */
   public function alterDisplay(&$rows) {
-    // custom code to alter rows
-
     $entryFound = FALSE;
     $dispname_flag = $phone_flag = $email_flag = 0;
     $prev_email = $prev_dispname = $prev_phone = NULL;
index 9cd7d364df7e1ef9bccfe6faf219741e0dbf52a7..3479ec3a5f05191cf4c35553007e61e8ae00b8da 100644 (file)
@@ -650,10 +650,15 @@ ROUND(AVG({$this->_aliases['civicrm_contribution_soft']}.amount), 2) as civicrm_
   }
 
   /**
-   * @param $rows
+   * Alter display of rows.
+   *
+   * Iterate through the rows retrieved via SQL and make changes for display purposes,
+   * such as rendering contacts as links.
+   *
+   * @param array $rows
+   *   Rows generated by SQL, with an array for each row.
    */
   public function alterDisplay(&$rows) {
-    // custom code to alter rows
     $entryFound = FALSE;
 
     foreach ($rows as $rowNum => $row) {
index 6b3d80fa19599e0f0431b8e06790fe72a6597ee9..abc9ff3cf958dfc57ece12cb8c394d512b33c93f 100644 (file)
@@ -476,10 +476,15 @@ class CRM_Report_Form_Contribute_Sybunt extends CRM_Report_Form {
   }
 
   /**
-   * @param $rows
+   * Alter display of rows.
+   *
+   * Iterate through the rows retrieved via SQL and make changes for display purposes,
+   * such as rendering contacts as links.
+   *
+   * @param array $rows
+   *   Rows generated by SQL, with an array for each row.
    */
   public function alterDisplay(&$rows) {
-    // custom code to alter rows
     $entryFound = FALSE;
 
     foreach ($rows as $rowNum => $row) {
index ee6b7e4eba8c346bc63ae39868e83a974a5b2ed9..fdb055fdc89df2f2015bd060336e5a067e1accae 100644 (file)
@@ -417,11 +417,15 @@ ORDER BY civicrm_contribution_total_amount_sum DESC
   }
 
   /**
-   * @param $rows
+   * Alter display of rows.
+   *
+   * Iterate through the rows retrieved via SQL and make changes for display purposes,
+   * such as rendering contacts as links.
+   *
+   * @param array $rows
+   *   Rows generated by SQL, with an array for each row.
    */
   public function alterDisplay(&$rows) {
-    // custom code to alter rows
-
     $entryFound = FALSE;
     $rank = 1;
     if (!empty($rows)) {
index 1a4b5041c6bce3cd927036c69fff33ad86e18c17..decdb7326254373912547cae6c73d80d20334aec 100644 (file)
@@ -311,6 +311,11 @@ class CRM_Report_Form_Event_Income extends CRM_Report_Form_Event {
     $this->assign_by_ref('pager', $pager);
   }
 
+  /**
+   * Form post process function.
+   *
+   * @return bool
+   */
   public function postProcess() {
     $this->beginPostProcess();
     $this->_setVariable = TRUE;
index 8e4bc8f576bebfb99ef7e61ade26d799d7d0b73a..1c090c8da0323ca37aaec3db2426188faacad555 100644 (file)
@@ -402,7 +402,13 @@ class CRM_Report_Form_Event_IncomeCountSummary extends CRM_Report_Form_Event {
   }
 
   /**
-   * @param $rows
+   * Alter display of rows.
+   *
+   * Iterate through the rows retrieved via SQL and make changes for display purposes,
+   * such as rendering contacts as links.
+   *
+   * @param array $rows
+   *   Rows generated by SQL, with an array for each row.
    */
   public function alterDisplay(&$rows) {
 
index f81fadc16072c6a804e13a931f5c5490ab7e1b0e..a18658ada8b94db7dc3d69066cceee929ca8ed07 100644 (file)
@@ -450,10 +450,15 @@ class CRM_Report_Form_Event_ParticipantListCount extends CRM_Report_Form_Event {
   }
 
   /**
-   * @param $rows
+   * Alter display of rows.
+   *
+   * Iterate through the rows retrieved via SQL and make changes for display purposes,
+   * such as rendering contacts as links.
+   *
+   * @param array $rows
+   *   Rows generated by SQL, with an array for each row.
    */
   public function alterDisplay(&$rows) {
-
     $entryFound = FALSE;
     $eventType = CRM_Core_OptionGroup::values('event_type');
 
index 418ee97507738ff008cf8786ffe4befb912e046d..e2f73c089198685a9f38e3166ed677460e168c3c 100644 (file)
@@ -630,11 +630,15 @@ ORDER BY  cv.label
   }
 
   /**
-   * @param $rows
+   * Alter display of rows.
+   *
+   * Iterate through the rows retrieved via SQL and make changes for display purposes,
+   * such as rendering contacts as links.
+   *
+   * @param array $rows
+   *   Rows generated by SQL, with an array for each row.
    */
   public function alterDisplay(&$rows) {
-    // custom code to alter rows
-
     $entryFound = FALSE;
     $eventType = CRM_Core_OptionGroup::values('event_type');
 
index 7c21537ac81506da38710708ed9cb2a59d7f0937..a99de4caf689706a0c09737bc5271fed56b8d8d5 100644 (file)
@@ -375,7 +375,13 @@ class CRM_Report_Form_Event_Summary extends CRM_Report_Form_Event {
   }
 
   /**
-   * @param $rows
+   * Alter display of rows.
+   *
+   * Iterate through the rows retrieved via SQL and make changes for display purposes,
+   * such as rendering contacts as links.
+   *
+   * @param array $rows
+   *   Rows generated by SQL, with an array for each row.
    */
   public function alterDisplay(&$rows) {
 
index ef11ba6594b4cbfd53e9786c1b5a58bb1bac6185..88a32790996915f44c8711bfc1b3565a8362dc3e 100644 (file)
@@ -128,7 +128,13 @@ class CRM_Report_Form_Extended extends CRM_Report_Form {
   }
 
   /**
+   * Alter display of rows.
+   *
+   * Iterate through the rows retrieved via SQL and make changes for display purposes,
+   * such as rendering contacts as links.
+   *
    * @param array $rows
+   *   Rows generated by SQL, with an array for each row.
    */
   public function alterDisplay(&$rows) {
     parent::alterDisplay($rows);
index fda6d41083c441bfa8ad82f64f3bd2dc4a262d59..3799eac34cd842934b724d23523e3b00635f7cb1 100644 (file)
@@ -312,10 +312,15 @@ class CRM_Report_Form_Grant_Detail extends CRM_Report_Form {
   }
 
   /**
-   * @param $rows
+   * Alter display of rows.
+   *
+   * Iterate through the rows retrieved via SQL and make changes for display purposes,
+   * such as rendering contacts as links.
+   *
+   * @param array $rows
+   *   Rows generated by SQL, with an array for each row.
    */
   public function alterDisplay(&$rows) {
-    // custom code to alter rows
     $entryFound = FALSE;
     foreach ($rows as $rowNum => $row) {
       // convert display name to links
index 6b26966be95d9604178b3c8efb76e0eeda6004c1..cb3ed771aadbb89f0763fc6045d49e780a49f13d 100644 (file)
@@ -348,7 +348,13 @@ WHERE {$this->_aliases['civicrm_grant']}.amount_total IS NOT NULL
   }
 
   /**
-   * @param $rows
+   * Alter display of rows.
+   *
+   * Iterate through the rows retrieved via SQL and make changes for display purposes,
+   * such as rendering contacts as links.
+   *
+   * @param array $rows
+   *   Rows generated by SQL, with an array for each row.
    */
   public function alterDisplay(&$rows) {
     $totalStatistics = $grantStatistics = array();
index ccea88b922ca5f823401a5894d7b53c3545384f9..a1b447f7ed64720e915e95ff73da813b1b372dfb 100644 (file)
@@ -351,10 +351,15 @@ class CRM_Report_Form_Mailing_Bounce extends CRM_Report_Form {
   }
 
   /**
-   * @param $rows
+   * Alter display of rows.
+   *
+   * Iterate through the rows retrieved via SQL and make changes for display purposes,
+   * such as rendering contacts as links.
+   *
+   * @param array $rows
+   *   Rows generated by SQL, with an array for each row.
    */
   public function alterDisplay(&$rows) {
-    // custom code to alter rows
     $entryFound = FALSE;
     foreach ($rows as $rowNum => $row) {
       // make count columns point to detail report
index b5b12afdcbe7eb78f1ab4f0552e68763208f20d5..c576d70e5d1d7dcbeffb838d14353d450a70d8cf 100644 (file)
@@ -299,10 +299,15 @@ class CRM_Report_Form_Mailing_Clicks extends CRM_Report_Form {
   }
 
   /**
-   * @param $rows
+   * Alter display of rows.
+   *
+   * Iterate through the rows retrieved via SQL and make changes for display purposes,
+   * such as rendering contacts as links.
+   *
+   * @param array $rows
+   *   Rows generated by SQL, with an array for each row.
    */
   public function alterDisplay(&$rows) {
-    // custom code to alter rows
     $entryFound = FALSE;
     foreach ($rows as $rowNum => $row) {
       // make count columns point to detail report
index e17aafbe725764373394c0238dea0bd6793ee4d8..91ed1f8232b47555919714ecdbeb6ec56a0c55f4 100644 (file)
@@ -443,10 +443,15 @@ class CRM_Report_Form_Mailing_Detail extends CRM_Report_Form {
   }
 
   /**
-   * @param $rows
+   * Alter display of rows.
+   *
+   * Iterate through the rows retrieved via SQL and make changes for display purposes,
+   * such as rendering contacts as links.
+   *
+   * @param array $rows
+   *   Rows generated by SQL, with an array for each row.
    */
   public function alterDisplay(&$rows) {
-    // custom code to alter rows
     $entryFound = FALSE;
     foreach ($rows as $rowNum => $row) {
       // make count columns point to detail report
index bb981a6e18988d333eb59fe32aba76b222671720..405ee9b3f1415e364f678e5268fc715493f922a2 100644 (file)
@@ -286,10 +286,15 @@ class CRM_Report_Form_Mailing_Opened extends CRM_Report_Form {
   }
 
   /**
-   * @param $rows
+   * Alter display of rows.
+   *
+   * Iterate through the rows retrieved via SQL and make changes for display purposes,
+   * such as rendering contacts as links.
+   *
+   * @param array $rows
+   *   Rows generated by SQL, with an array for each row.
    */
   public function alterDisplay(&$rows) {
-    // custom code to alter rows
     $entryFound = FALSE;
     foreach ($rows as $rowNum => $row) {
       // make count columns point to detail report
index a604330a9fc4f94714cdde26b5131dbef8073c50..82d5381e0fc47c756c5c9400cd1d14a129f3f1e5 100644 (file)
@@ -571,10 +571,15 @@ class CRM_Report_Form_Mailing_Summary extends CRM_Report_Form {
   }
 
   /**
-   * @param $rows
+   * Alter display of rows.
+   *
+   * Iterate through the rows retrieved via SQL and make changes for display purposes,
+   * such as rendering contacts as links.
+   *
+   * @param array $rows
+   *   Rows generated by SQL, with an array for each row.
    */
   public function alterDisplay(&$rows) {
-    // custom code to alter rows
     $entryFound = FALSE;
     foreach ($rows as $rowNum => $row) {
       // make count columns point to detail report
index 1a6d9e184eba6160a31992bd0a62b20d5d500762..eb44925b4cf3cbe6bd0e8227145627b7b532d365 100644 (file)
@@ -384,10 +384,15 @@ class CRM_Report_Form_Member_Detail extends CRM_Report_Form {
   }
 
   /**
-   * @param $rows
+   * Alter display of rows.
+   *
+   * Iterate through the rows retrieved via SQL and make changes for display purposes,
+   * such as rendering contacts as links.
+   *
+   * @param array $rows
+   *   Rows generated by SQL, with an array for each row.
    */
   public function alterDisplay(&$rows) {
-    // custom code to alter rows
     $entryFound = FALSE;
     $checkList = array();
 
index 6b50f92cc05426c9f3f85d6ffc376ef243de6c48..1b93003edb0f8ab3e425fed86af71700431cdb08 100644 (file)
@@ -359,10 +359,15 @@ class CRM_Report_Form_Member_Lapse extends CRM_Report_Form {
   }
 
   /**
-   * @param $rows
+   * Alter display of rows.
+   *
+   * Iterate through the rows retrieved via SQL and make changes for display purposes,
+   * such as rendering contacts as links.
+   *
+   * @param array $rows
+   *   Rows generated by SQL, with an array for each row.
    */
   public function alterDisplay(&$rows) {
-    // custom code to alter rows
     $entryFound = FALSE;
     $checkList = array();
 
index 134e688f661ca0e998ca95b3b8172f0a2bb0d1d9..8cd3cc353eae5534caea1b47aef1ad9c1c31bf3f 100644 (file)
@@ -525,10 +525,15 @@ GROUP BY    {$this->_aliases['civicrm_contribution']}.currency
   }
 
   /**
-   * @param $rows
+   * Alter display of rows.
+   *
+   * Iterate through the rows retrieved via SQL and make changes for display purposes,
+   * such as rendering contacts as links.
+   *
+   * @param array $rows
+   *   Rows generated by SQL, with an array for each row.
    */
   public function alterDisplay(&$rows) {
-    // custom code to alter rows
     $entryFound = FALSE;
     foreach ($rows as $rowNum => $row) {
       // make count columns point to detail report
index a3a2411c359afcb60ac91bfd1f6f0b04547f13e7..5ea756430af2484b9aefc1d1265959f84edec218 100644 (file)
@@ -374,12 +374,15 @@ LEFT  JOIN civicrm_contribution  {$this->_aliases['civicrm_contribution']}
   }
 
   /**
-   * Make changes to how data is displayed.
+   * Alter display of rows.
+   *
+   * Iterate through the rows retrieved via SQL and make changes for display purposes,
+   * such as rendering contacts as links.
    *
    * @param array $rows
+   *   Rows generated by SQL, with an array for each row.
    */
   public function alterDisplay(&$rows) {
-    // custom code to alter rows
     $entryFound = FALSE;
     $checkList = array();
 
index 11b7a5f27b0882d8a09856ab49f92c6ee73facc2..f49c955fb696bca2cae36d79b54c1c596ee1945f 100644 (file)
@@ -500,10 +500,15 @@ class CRM_Report_Form_Pledge_Detail extends CRM_Report_Form {
   }
 
   /**
-   * @param $rows
+   * Alter display of rows.
+   *
+   * Iterate through the rows retrieved via SQL and make changes for display purposes,
+   * such as rendering contacts as links.
+   *
+   * @param array $rows
+   *   Rows generated by SQL, with an array for each row.
    */
   public function alterDisplay(&$rows) {
-    // custom code to alter rows
     $entryFound = FALSE;
     $checkList = array();
     $display_flag = $prev_cid = $cid = 0;
index 062ee279508538aff2a0156108c3a0073c01b85a..1f4165c39f66e99386e0a617ae44a9c9c2dd47e1 100644 (file)
@@ -287,10 +287,14 @@ class CRM_Report_Form_Pledge_Pbnp extends CRM_Report_Form {
   }
 
   /**
-   * @param $rows
+   * Alter display of rows.
+   *
+   * Iterate through the rows retrieved via SQL and make changes for display purposes,
+   * such as rendering contacts as links.
+   *
+   * @param array $rows
    */
   public function alterDisplay(&$rows) {
-    // custom code to alter rows
     $entryFound = FALSE;
     $checkList = array();
     $display_flag = $prev_cid = $cid = 0;
index d91fc6bfd2bdf0ecb06cd7bc6c1286d84fc74d9a..3f81a0e06054d1ba7eea4e6e91e5147b42547e9e 100644 (file)
@@ -364,10 +364,15 @@ class CRM_Report_Form_Pledge_Summary extends CRM_Report_Form {
   }
 
   /**
-   * @param $rows
+   * Alter display of rows.
+   *
+   * Iterate through the rows retrieved via SQL and make changes for display purposes,
+   * such as rendering contacts as links.
+   *
+   * @param array $rows
+   *   Rows generated by SQL, with an array for each row.
    */
   public function alterDisplay(&$rows) {
-    // custom code to alter rows
     $entryFound = FALSE;
     $checkList = array();
     $display_flag = $prev_cid = $cid = 0;
index 07fab668fb67fc14472998f6be6452aa08820031..1877bad74c3b8e66375c89899e35d6084ffa9b06 100644 (file)
@@ -243,10 +243,15 @@ FROM       civicrm_contact {$this->_aliases['civicrm_contact']} {$this->_aclFrom
   }
 
   /**
-   * @param $rows
+   * Alter display of rows.
+   *
+   * Iterate through the rows retrieved via SQL and make changes for display purposes,
+   * such as rendering contacts as links.
+   *
+   * @param array $rows
+   *   Rows generated by SQL, with an array for each row.
    */
   public function alterDisplay(&$rows) {
-    // custom code to alter rows
     $entryFound = FALSE;
     foreach ($rows as $rowNum => $row) {
       // handle state province
index a56149017b23f21026673b83c9547d7ccab55bc2..c18b1b5167692e46980c8b7d68e6fe52130ccd1c 100644 (file)
@@ -196,6 +196,11 @@ class api_v3_SyntaxConformanceTest extends CiviUnitTestCase {
     return static::entities(static::toBeSkipped_getlimit());
   }
 
+  /**
+   * Generate list of entities that can be retrieved using SQL operator syntax.
+   *
+   * @return array
+   */
   public static function entities_getSqlOperators() {
     return static::entities(static::toBeSkipped_getSqlOperators());
   }