Notification for Updation not shown after Save button is clicked on Manage Event...
[civicrm-core.git] / CRM / Event / PseudoConstant.php
index f603e35b809b38bacc8fac49eb5767567b8b97a7..e3966e7f8961f1e265faffb1fecb8b8af5956183 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.5                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
@@ -80,7 +80,7 @@ class CRM_Event_PseudoConstant extends CRM_Core_PseudoConstant {
   private static $eventType;
 
   /**
-   * event template titles
+   * Event template titles
    * @var array
    */
   private static $eventTemplates;
@@ -95,7 +95,10 @@ class CRM_Event_PseudoConstant extends CRM_Core_PseudoConstant {
   /**
    * Get all the n events
    *
-   * @access public
+   *
+   * @param int $id
+   * @param bool $all
+   * @param null $condition
    *
    * @return array - array of all events if any
    * @static
@@ -128,9 +131,10 @@ class CRM_Event_PseudoConstant extends CRM_Core_PseudoConstant {
   /**
    * Get all the n participant statuses
    *
-   * @access public
    *
-   * @param  string - $retColumn  tells populate() whether to return 'name' (default) or 'label' values
+   * @param int $id
+   * @param null $cond
+   * @param string $retColumn tells populate() whether to return 'name' (default) or 'label' values
    *
    * @return array  - array reference of all participant statuses if any
    * @static
@@ -162,7 +166,7 @@ class CRM_Event_PseudoConstant extends CRM_Core_PseudoConstant {
    *
    * @return array  of status classes, keyed by status type
    */
-  static function &participantStatusClass() {
+  public static function &participantStatusClass() {
     static $statusClasses = NULL;
 
     if ($statusClasses === NULL) {
@@ -175,7 +179,9 @@ class CRM_Event_PseudoConstant extends CRM_Core_PseudoConstant {
   /**
    * Get all the n participant roles
    *
-   * @access public
+   *
+   * @param int $id
+   * @param null $cond
    *
    * @return array - array reference of all participant roles if any
    * @static
@@ -205,7 +211,8 @@ class CRM_Event_PseudoConstant extends CRM_Core_PseudoConstant {
   /**
    * Get all the participant listings
    *
-   * @access public
+   *
+   * @param int $id
    *
    * @return array - array reference of all participant listings if any
    * @static
@@ -226,8 +233,8 @@ class CRM_Event_PseudoConstant extends CRM_Core_PseudoConstant {
   /**
    * Get all  event types.
    *
-   * @access public
    *
+   * @param int $id
    * @return array - array reference of all event types.
    * @static
    */
@@ -245,7 +252,9 @@ class CRM_Event_PseudoConstant extends CRM_Core_PseudoConstant {
   }
 
   /**
-   * get event template titles
+   * Get event template titles
+   *
+   * @param int $id
    *
    * @return array  of event id → template title pairs
    */
@@ -269,11 +278,9 @@ class CRM_Event_PseudoConstant extends CRM_Core_PseudoConstant {
    * Flush given pseudoconstant so it can be reread from db
    * nex time it's requested.
    *
-   * @access public
    * @static
    *
-   * @param boolean $name pseudoconstant to be flushed
-   *
+   * @param bool|string $name pseudoconstant to be flushed
    */
   public static function flush($name = 'cache') {
    if (isset(self::$$name)) {
@@ -284,8 +291,8 @@ class CRM_Event_PseudoConstant extends CRM_Core_PseudoConstant {
   /**
    * Get all the Personal campaign pages
    *
-   * @access public
    *
+   * @param int $id
    * @return array - array reference of all pcp if any
    * @static
    */
@@ -302,4 +309,3 @@ class CRM_Event_PseudoConstant extends CRM_Core_PseudoConstant {
     return self::$pcPage;
   }
 }
-