Non functional changes towards shared functions in Core_Form_Task
[civicrm-core.git] / CRM / Case / Form / Task.php
index 398cdffd044dac994f727d689d68123e4a5e9c85..513ee62e0502e8ff977078f5a2210063df4391aa 100644 (file)
@@ -40,13 +40,6 @@ class CRM_Case_Form_Task extends CRM_Core_Form_Task {
   // Must be set to entity shortname (eg. event)
   static $entityShortname = 'case';
 
-  /**
-   * Must be set to queryMode
-   *
-   * @var int
-   */
-  static $queryMode = CRM_Contact_BAO_Query::MODE_CASE;
-
   /**
    * @inheritDoc
    */
@@ -56,4 +49,13 @@ class CRM_Case_Form_Task extends CRM_Core_Form_Task {
     );
   }
 
+  /**
+   * Get the query mode (eg. CRM_Core_BAO_Query::MODE_CASE)
+   *
+   * @return int
+   */
+  public function getQueryMode() {
+    return CRM_Contact_BAO_Query::MODE_CASE;
+  }
+
 }