private static $pcPage;
/**
- * Get all the n events
+ * Get all events
*
- *
- * @param int $id
+ * @param int|null $id
* @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) {
}
/**
- * 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.
*
- * @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) {
*
*
* @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
/**
* Flush given pseudoconstant so it can be reread from db
- * nex time it's requested.
+ * next time it's requested.
*
*
* @param bool|string $name pseudoconstant to be flushed