X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FContribute%2FSelector%2FSearch.php;h=7ed80e6d57b73c8028e28b1052693bd0fa7e3e94;hb=874c9be71a0eaece92406de8089dc7de42298084;hp=153963e8a57d18a09e202ea64c46592c0ca5115e;hpb=1219e6af26646ad548b2d7e97a7f345af4655c21;p=civicrm-core.git diff --git a/CRM/Contribute/Selector/Search.php b/CRM/Contribute/Selector/Search.php index 153963e8a5..7ed80e6d57 100644 --- a/CRM/Contribute/Selector/Search.php +++ b/CRM/Contribute/Selector/Search.php @@ -151,11 +151,15 @@ class CRM_Contribute_Selector_Search extends CRM_Core_Selector_Base implements C /** * Class constructor * - * @param array $queryParams array of parameters for query + * @param array $queryParams + * Array of parameters for query. * @param \const|int $action - action of search basic or advanced. - * @param string $contributionClause if the caller wants to further restrict the search (used in contributions) - * @param boolean $single are we dealing only with one contact? - * @param int $limit how many contributions do we want returned + * @param string $contributionClause + * If the caller wants to further restrict the search (used in contributions). + * @param bool $single + * Are we dealing only with one contact?. + * @param int $limit + * How many contributions do we want returned. * * @param string $context * @param null $compContext @@ -164,12 +168,12 @@ class CRM_Contribute_Selector_Search extends CRM_Core_Selector_Base implements C @access public */ function __construct(&$queryParams, - $action = CRM_Core_Action::NONE, + $action = CRM_Core_Action::NONE, $contributionClause = NULL, - $single = FALSE, - $limit = NULL, - $context = 'search', - $compContext = NULL + $single = FALSE, + $limit = NULL, + $context = 'search', + $compContext = NULL ) { // submitted form values @@ -294,11 +298,16 @@ class CRM_Contribute_Selector_Search extends CRM_Core_Selector_Base implements C /** * Returns all the rows in the given offset and rowCount * - * @param enum $action the action being performed - * @param int $offset the row number to start from - * @param int $rowCount the number of rows to return - * @param string $sort the sql string that describes the sort order - * @param enum $output what should the result set include (web/email/csv) + * @param enum $action + * The action being performed. + * @param int $offset + * The row number to start from. + * @param int $rowCount + * The number of rows to return. + * @param string $sort + * The sql string that describes the sort order. + * @param enum $output + * What should the result set include (web/email/csv). * * @return int the total number of rows for this action */ @@ -350,7 +359,7 @@ class CRM_Contribute_Selector_Search extends CRM_Core_Selector_Base implements C //get all campaigns. $allCampaigns = CRM_Campaign_BAO_Campaign::getCampaigns(NULL, NULL, FALSE, FALSE, FALSE, TRUE); - While ($result->fetch()) { + while ($result->fetch()) { $row = array(); // the columns we are interested in foreach (self::$_properties as $property) { @@ -401,8 +410,7 @@ class CRM_Contribute_Selector_Search extends CRM_Core_Selector_Base implements C $result->contribution_id ); - $row['contact_type'] = CRM_Contact_BAO_Contact_Utils::getImage($result->contact_sub_type ? - $result->contact_sub_type : $result->contact_type, FALSE, $result->contact_id + $row['contact_type'] = CRM_Contact_BAO_Contact_Utils::getImage($result->contact_sub_type ? $result->contact_sub_type : $result->contact_type, FALSE, $result->contact_id ); if (!empty($row['amount_level'])) { @@ -429,8 +437,10 @@ class CRM_Contribute_Selector_Search extends CRM_Core_Selector_Base implements C * Returns the column headers as an array of tuples: * (name, sortName (key to the sort array)) * - * @param string $action the action being performed - * @param enum $output what should the result set include (web/email/csv) + * @param string $action + * The action being performed. + * @param enum $output + * What should the result set include (web/email/csv). * * @return array the column headers that need to be displayed */ @@ -546,7 +556,8 @@ class CRM_Contribute_Selector_Search extends CRM_Core_Selector_Base implements C /** * Name of export file. * - * @param string $output type of output + * @param string $output + * Type of output. * * @return string name of the file */