/**
* Returns all active options ordered by weight for a given field
*
- * @param int $fieldId field whose options are needed
- * @param boolean $inactiveNeeded do we need inactive options ?
+ * @param $fieldID
+ * @param boolean $inactiveNeeded do we need inactive options ?
*
+ * @internal param int $fieldId field whose options are needed
* @return array $customOption all active options for fieldId
* @static
*/
*
* @param $fieldId int the custom field ID
* @pram $value string the value (typically from the DB) of this custom field
+ * @param $value
* @param $htmlType string the html type of the field (optional)
* @param $dataType string the data type of the field (optional)
*
}
}
+ /**
+ * @param $params
+ *
+ * @throws Exception
+ */
static function updateCustomValues($params) {
$optionDAO = new CRM_Core_DAO_OptionValue();
$optionDAO->id = $params['optionId'];
}
}
+ /**
+ * @param $customFieldID
+ * @param null $optionGroupID
+ *
+ * @return array
+ */
static function valuesByID($customFieldID, $optionGroupID = NULL) {
if (!$optionGroupID) {
$optionGroupID = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_CustomField',