Notification for Updation not shown after Save button is clicked on Manage Event...
[civicrm-core.git] / CRM / Event / PseudoConstant.php
index dc1472b76228dc8798c0b64662500957b40858c7..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,9 +95,8 @@ class CRM_Event_PseudoConstant extends CRM_Core_PseudoConstant {
   /**
    * Get all the n events
    *
-   * @access public
    *
-   * @param null $id
+   * @param int $id
    * @param bool $all
    * @param null $condition
    *
@@ -132,9 +131,8 @@ class CRM_Event_PseudoConstant extends CRM_Core_PseudoConstant {
   /**
    * Get all the n participant statuses
    *
-   * @access public
    *
-   * @param null $id
+   * @param int $id
    * @param null $cond
    * @param string $retColumn tells populate() whether to return 'name' (default) or 'label' values
    *
@@ -168,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) {
@@ -181,9 +179,8 @@ class CRM_Event_PseudoConstant extends CRM_Core_PseudoConstant {
   /**
    * Get all the n participant roles
    *
-   * @access public
    *
-   * @param null $id
+   * @param int $id
    * @param null $cond
    *
    * @return array - array reference of all participant roles if any
@@ -214,9 +211,8 @@ class CRM_Event_PseudoConstant extends CRM_Core_PseudoConstant {
   /**
    * Get all the participant listings
    *
-   * @access public
    *
-   * @param null $id
+   * @param int $id
    *
    * @return array - array reference of all participant listings if any
    * @static
@@ -237,9 +233,8 @@ class CRM_Event_PseudoConstant extends CRM_Core_PseudoConstant {
   /**
    * Get all  event types.
    *
-   * @access public
    *
-   * @param null $id
+   * @param int $id
    * @return array - array reference of all event types.
    * @static
    */
@@ -257,9 +252,9 @@ class CRM_Event_PseudoConstant extends CRM_Core_PseudoConstant {
   }
 
   /**
-   * get event template titles
+   * Get event template titles
    *
-   * @param null $id
+   * @param int $id
    *
    * @return array  of event id → template title pairs
    */
@@ -283,7 +278,6 @@ 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 bool|string $name pseudoconstant to be flushed
@@ -297,9 +291,8 @@ class CRM_Event_PseudoConstant extends CRM_Core_PseudoConstant {
   /**
    * Get all the Personal campaign pages
    *
-   * @access public
    *
-   * @param null $id
+   * @param int $id
    * @return array - array reference of all pcp if any
    * @static
    */
@@ -316,4 +309,3 @@ class CRM_Event_PseudoConstant extends CRM_Core_PseudoConstant {
     return self::$pcPage;
   }
 }
-