projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #23635 from eileenmcnaughton/import_unreach2
[civicrm-core.git]
/
CRM
/
Event
/
PseudoConstant.php
diff --git
a/CRM/Event/PseudoConstant.php
b/CRM/Event/PseudoConstant.php
index 2ff32e629e23f4de7b735e756f9d7350b3f38fd5..1543f86709eb1f5b95bab197945e41765d673ab8 100644
(file)
--- a/
CRM/Event/PseudoConstant.php
+++ b/
CRM/Event/PseudoConstant.php
@@
-70,14
+70,14
@@
class CRM_Event_PseudoConstant extends CRM_Core_PseudoConstant {
private static $pcPage;
/**
private static $pcPage;
/**
- * Get all
the n
events
+ * Get all events
*
*
- *
- * @param int $id
+ * @param int|null $id
* @param bool $all
* @param bool $all
- * @param null $condition
+ * @param string|null $condition
+ * Optional SQL where condition
*
*
- * @return array
+ * @return array
|string|null
* array of all events if any
*/
public static function event($id = NULL, $all = FALSE, $condition = NULL) {
* array of all events if any
*/
public static function event($id = NULL, $all = FALSE, $condition = NULL) {
@@
-106,16
+106,18
@@
class CRM_Event_PseudoConstant extends CRM_Core_PseudoConstant {
}
/**
}
/**
- * Get all the
n
participant statuses.
+ * Get all the
event
participant statuses.
*
*
*
*
- * @param int $id
- * @param null $cond
+ * @param int|null $id
+ * Return the specified participant status, or null to return all
+ * @param string|null $cond
+ * Optional SQL where condition
* @param string $retColumn
* Tells populate() whether to return 'name' (default) or 'label' values.
*
* @param string $retColumn
* Tells populate() whether to return 'name' (default) or 'label' values.
*
- * @return array
- * array reference of all participant statuses if any
+ * @return array
|string
+ * array reference of all participant statuses if any
, or single value if $id was passed
*/
public static function &participantStatus($id = NULL, $cond = NULL, $retColumn = 'name') {
if (self::$participantStatus === NULL) {
*/
public static function &participantStatus($id = NULL, $cond = NULL, $retColumn = 'name') {
if (self::$participantStatus === NULL) {
@@
-174,7
+176,8
@@
class CRM_Event_PseudoConstant extends CRM_Core_PseudoConstant {
*
*
* @param int $id
*
*
* @param int $id
- * @param null $cond
+ * @param string|null $cond
+ * Optional SQL where condition
*
* @return array|string
* array reference of all participant roles if any
*
* @return array|string
* array reference of all participant roles if any
@@
-270,7
+273,7
@@
class CRM_Event_PseudoConstant extends CRM_Core_PseudoConstant {
/**
* Flush given pseudoconstant so it can be reread from db
/**
* Flush given pseudoconstant so it can be reread from db
- * nex time it's requested.
+ * nex
t
time it's requested.
*
*
* @param bool|string $name pseudoconstant to be flushed
*
*
* @param bool|string $name pseudoconstant to be flushed