CRM-14199 Enhancement - Incorrect Math in Import routines
[civicrm-core.git] / CRM / Activity / Task.php
index 032f6a92f8d382433b1e6e1de5aae69c7bbdf374..a17978ea2391581e72d975ce6cd866f6d85d70ef 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.5                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
@@ -38,7 +38,7 @@
  *
  */
 class CRM_Activity_Task {
-  CONST
+  const
     DELETE_ACTIVITIES = 1,
     PRINT_ACTIVITIES = 2,
     EXPORT_ACTIVITIES = 3,
@@ -47,7 +47,7 @@ class CRM_Activity_Task {
     EMAIL_SMS = 6;
 
   /**
-   * the task array
+   * The task array
    *
    * @var array
    * @static
@@ -55,7 +55,7 @@ class CRM_Activity_Task {
   static $_tasks = NULL;
 
   /**
-   * the optional task array
+   * The optional task array
    *
    * @var array
    * @static
@@ -68,9 +68,8 @@ class CRM_Activity_Task {
    *
    * @return array the set of tasks for a group of contacts
    * @static
-   * @access public
    */
-  static function &tasks() {
+  public static function &tasks() {
     if (!(self::$_tasks)) {
       self::$_tasks = array(
         1 => array(
@@ -152,9 +151,8 @@ class CRM_Activity_Task {
    *
    * @return array the set of task titles
    * @static
-   * @access public
    */
-  static function &taskTitles() {
+  public static function &taskTitles() {
     self::tasks();
     $titles = array();
     foreach (self::$_tasks as $id => $value) {
@@ -164,15 +162,14 @@ class CRM_Activity_Task {
   }
 
   /**
-   * show tasks selectively based on the permission level
+   * Show tasks selectively based on the permission level
    * of the user
    *
    * @param int $permission
    *
    * @return array set of tasks that are valid for the user
-   * @access public
    */
-  static function &permissionedTaskTitles($permission) {
+  public static function &permissionedTaskTitles($permission) {
     $tasks = array();
     if ($permission == CRM_Core_Permission::EDIT) {
       $tasks = self::taskTitles();
@@ -198,9 +195,8 @@ class CRM_Activity_Task {
    *
    * @return array the set of tasks for a group of activity
    * @static
-   * @access public
    */
-  static function getTask($value) {
+  public static function getTask($value) {
     self::tasks();
     if (!$value || !CRM_Utils_Array::value($value, self::$_tasks)) {
       // make the print task by default
@@ -212,4 +208,3 @@ class CRM_Activity_Task {
     );
   }
 }
-