projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CRM-15172 - Refactor forms to use addChainSelect method
[civicrm-core.git]
/
CRM
/
Event
/
PseudoConstant.php
diff --git
a/CRM/Event/PseudoConstant.php
b/CRM/Event/PseudoConstant.php
index 7dc8d73bf3ca97ceb4b5ccb5649182a2d4f361f4..39536722add33c66de1a9f6b5a52a87692c84596 100644
(file)
--- a/
CRM/Event/PseudoConstant.php
+++ b/
CRM/Event/PseudoConstant.php
@@
-1,9
+1,9
@@
<?php
/*
+--------------------------------------------------------------------+
<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.
4
|
+ | CiviCRM version 4.
5
|
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-201
3
|
+ | Copyright CiviCRM LLC (c) 2004-201
4
|
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
@@
-28,7
+28,7
@@
/**
*
* @package CRM
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-201
3
+ * @copyright CiviCRM LLC (c) 2004-201
4
* $Id$
*
*/
* $Id$
*
*/
@@
-97,10
+97,14
@@
class CRM_Event_PseudoConstant extends CRM_Core_PseudoConstant {
*
* @access public
*
*
* @access public
*
- * @return array - array reference of all events if any
+ * @param null $id
+ * @param bool $all
+ * @param null $condition
+ *
+ * @return array - array of all events if any
* @static
*/
* @static
*/
- public static function
&
event($id = NULL, $all = FALSE, $condition = NULL) {
+ public static function event($id = NULL, $all = FALSE, $condition = NULL) {
$key = "{$id}_{$all}_{$condition}";
if (!isset(self::$event[$key])) {
$key = "{$id}_{$all}_{$condition}";
if (!isset(self::$event[$key])) {
@@
-130,7
+134,11
@@
class CRM_Event_PseudoConstant extends CRM_Core_PseudoConstant {
*
* @access public
*
*
* @access public
*
- * @param string - $retColumn tells populate() whether to return 'name' (default) or 'label' values
+ * @param null $id
+ * @param null $cond
+ * @param string $retColumn
+ *
+ * @internal param $string - $retColumn tells populate() whether to return 'name' (default) or 'label' values
*
* @return array - array reference of all participant statuses if any
* @static
*
* @return array - array reference of all participant statuses if any
* @static
@@
-177,6
+185,9
@@
class CRM_Event_PseudoConstant extends CRM_Core_PseudoConstant {
*
* @access public
*
*
* @access public
*
+ * @param null $id
+ * @param null $cond
+ *
* @return array - array reference of all participant roles if any
* @static
*/
* @return array - array reference of all participant roles if any
* @static
*/
@@
-207,6
+218,8
@@
class CRM_Event_PseudoConstant extends CRM_Core_PseudoConstant {
*
* @access public
*
*
* @access public
*
+ * @param null $id
+ *
* @return array - array reference of all participant listings if any
* @static
*/
* @return array - array reference of all participant listings if any
* @static
*/
@@
-228,6
+241,7
@@
class CRM_Event_PseudoConstant extends CRM_Core_PseudoConstant {
*
* @access public
*
*
* @access public
*
+ * @param null $id
* @return array - array reference of all event types.
* @static
*/
* @return array - array reference of all event types.
* @static
*/
@@
-247,6
+261,8
@@
class CRM_Event_PseudoConstant extends CRM_Core_PseudoConstant {
/**
* get event template titles
*
/**
* get event template titles
*
+ * @param null $id
+ *
* @return array of event id → template title pairs
*/
public static function &eventTemplates($id = NULL) {
* @return array of event id → template title pairs
*/
public static function &eventTemplates($id = NULL) {
@@
-272,8
+288,7
@@
class CRM_Event_PseudoConstant extends CRM_Core_PseudoConstant {
* @access public
* @static
*
* @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)) {
*/
public static function flush($name = 'cache') {
if (isset(self::$$name)) {
@@
-286,6
+301,7
@@
class CRM_Event_PseudoConstant extends CRM_Core_PseudoConstant {
*
* @access public
*
*
* @access public
*
+ * @param null $id
* @return array - array reference of all pcp if any
* @static
*/
* @return array - array reference of all pcp if any
* @static
*/