| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
class CRM_Core_BAO_CustomOption {
/**
- * Fetch object based on array of properties
+ * Fetch object based on array of properties.
*
* @param array $params
* (reference ) an assoc array of name/value pairs.
* (reference ) an assoc array to hold the flattened values.
*
* @return CRM_Core_BAO_CustomOption
- * @static
*/
public static function retrieve(&$params, &$defaults) {
$customOption = new CRM_Core_DAO_OptionValue();
}
/**
- * Returns all active options ordered by weight for a given field
+ * Returns all active options ordered by weight for a given field.
*
* @param int $fieldID
* Field whose options are needed.
- * @param bool $inactiveNeededDo we need inactive options ?.
+ * @param bool $inactiveNeeded Do we need inactive options ?.
* Do we need inactive options ?.
*
* @return array
* all active options for fieldId
- * @static
*/
- static function getCustomOption(
+ public static function getCustomOption(
$fieldID,
$inactiveNeeded = FALSE
) {
*
* @return string
* the label to display for this custom field
- * @static
*/
public static function getOptionLabel($fieldId, $value, $htmlType = NULL, $dataType = NULL) {
if (!$fieldId) {
case 'Autocomplete-Select':
if (!in_array($dataType, array(
'Boolean',
- 'ContactReference'
+ 'ContactReference',
))
) {
$options = self::valuesByID($fieldId);
}
/**
- * Delete Option
+ * Delete Option.
*
* @param $optionId integer
* option id
*
- * @static
*/
public static function del($optionId) {
// get the customFieldID
return $options;
}
+
}