* @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)) {
*
* The static array activityType is returned
*
- * @param boolean $all - get All Activity types - default is to get only active ones.
+ * @internal param bool $all - get All Activity types - default is to get only active ones.
*
* @access public
* @static
* @access public
* @static
*
- * @param int $id - Optional id to return
+ * @param bool|int $id - Optional id to return
*
- * @return array - array reference of all State/Provinces.
+ * @param bool $limit
*
+ * @return array - array reference of all State/Provinces.
*/
public static function &stateProvince($id = FALSE, $limit = TRUE) {
if (($id && !CRM_Utils_Array::value($id, self::$stateProvince)) || !self::$stateProvince || !$id) {
* @access public
* @static
*
- * @param int $id - Optional id to return
+ * @param bool|int $id - Optional id to return
+ *
+ * @param bool $limit
*
* @return array - array reference of all State/Province abbreviations.
*/
return self::$visibility[$column];
}
+ /**
+ * @param $countryID
+ * @param string $field
+ *
+ * @return array
+ */
public static function &stateProvinceForCountry($countryID, $field = 'name') {
static $_cache = NULL;
return $result;
}
+ /**
+ * @param $stateID
+ *
+ * @return array
+ */
public static function &countyForState($stateID) {
if (is_array($stateID)) {
$states = implode(", ", $stateID);