CRM-14199 Enhancement - Incorrect Math in Import routines
[civicrm-core.git] / CRM / Activity / Task.php
index fc4b395673eb37682da52127eb14dedfc2a11166..a17978ea2391581e72d975ce6cd866f6d85d70ef 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.4                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013                                |
+ | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -27,7 +27,7 @@
 /**
  *
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
  * $Id$
  *
  */
@@ -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 {
     );
   }
 }
-