X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FActivity%2FSelector%2FSearch.php;h=c46c439b4678dc5332eec44c346c9a9be35f5556;hb=32864ccf6ecdf9927f12f57a693ef0f22d9ccfb4;hp=20dea8c37b631ce04a922bc17acba016b18c0687;hpb=9d29f5f8596366df6a6ae99b97029da639e03004;p=civicrm-core.git diff --git a/CRM/Activity/Selector/Search.php b/CRM/Activity/Selector/Search.php index 20dea8c37b..c46c439b46 100644 --- a/CRM/Activity/Selector/Search.php +++ b/CRM/Activity/Selector/Search.php @@ -141,11 +141,15 @@ class CRM_Activity_Selector_Search extends CRM_Core_Selector_Base implements CRM /** * 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 $activityClause if the caller wants to further restrict the search (used in activities) - * @param boolean $single are we dealing only with one contact? - * @param int $limit how many activities do we want returned + * @param string $activityClause + * If the caller wants to further restrict the search (used in activities). + * @param bool $single + * Are we dealing only with one contact?. + * @param int $limit + * How many activities do we want returned. * * @param string $context * @param null $compContext @@ -154,12 +158,12 @@ class CRM_Activity_Selector_Search extends CRM_Core_Selector_Base implements CRM @access public */ function __construct(&$queryParams, - $action = CRM_Core_Action::NONE, + $action = CRM_Core_Action::NONE, $activityClause = NULL, - $single = FALSE, - $limit = NULL, - $context = 'search', - $compContext = NULL + $single = FALSE, + $limit = NULL, + $context = 'search', + $compContext = NULL ) { // submitted form values $this->_queryParams = &$queryParams; @@ -218,11 +222,16 @@ class CRM_Activity_Selector_Search extends CRM_Core_Selector_Base implements CRM /** * 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 array rows in the given offset and rowCount */ @@ -278,8 +287,7 @@ class CRM_Activity_Selector_Search extends CRM_Core_Selector_Base implements CRM if ($this->_context == 'search') { $row['checkbox'] = CRM_Core_Form::CB_PREFIX . $result->activity_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 ); $accessMailingReport = FALSE; $activityTypeId = $row['activity_type_id']; @@ -360,8 +368,10 @@ class CRM_Activity_Selector_Search extends CRM_Core_Selector_Base implements CRM * 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 */ @@ -420,7 +430,8 @@ class CRM_Activity_Selector_Search extends CRM_Core_Selector_Base implements CRM /** * Name of export file. * - * @param string $output type of output + * @param string $output + * Type of output. * * @return string name of the file */