<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.6 |
+ | CiviCRM version 4.7 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
+ | Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2014
- * $Id$
- *
+ * @copyright CiviCRM LLC (c) 2004-2015
*/
/**
- * This class is used to retrieve and display activities for a contact
- *
+ * This class is used to retrieve and display activities for a contact.
*/
class CRM_Activity_Selector_Activity extends CRM_Core_Selector_Base implements CRM_Core_Selector_API {
* We use desc to remind us what that column is, name is used in the tpl
*
* @var array
- * @static
*/
static $_columnHeaders;
protected $_viewOptions;
/**
- * Class constructor
+ * Class constructor.
*
* @param int $contactId
* Contact whose activities we want to display.
* @param null $activityTypeIDs
*
* @return \CRM_Activity_Selector_Activity
- * @access public
*/
- function __construct(
+ public function __construct(
$contactId,
$permission,
$admin = FALSE,
'url' => $url,
'qs' => $qsView,
'title' => ts('View Activity'),
- )
+ ),
);
}
'url' => $updateUrl,
'qs' => $qsUpdate,
'title' => ts('Update Activity'),
- )
+ ),
);
}
}
'url' => '#',
'extra' => 'onclick="javascript:fileOnCase( \'file\', \'%%id%%\', null, this ); return false;"',
'title' => ts('File on Case'),
- )
+ ),
);
}
'url' => $delUrl,
'qs' => $qsDelete,
'title' => ts('Delete Activity'),
- )
+ ),
);
}
'url' => 'civicrm/mailing/report',
'qs' => "mid={$sourceRecordId}&reset=1&cid=%%cid%%&context=activitySelector",
'title' => ts('View Mailing Report'),
- )
+ ),
);
}
}
/**
- * Returns all the rows in the given offset and rowCount
+ * Returns all the rows in the given offset and rowCount.
*
* @param string $action
* The action being performed.
}
/**
- * Get colunmn headers for search selector
+ * Get colunmn headers for search selector.
*
*
* @return array
return self::$_columnHeaders;
}
+
}