X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FBAO%2FCustomOption.php;h=bf2cb527d980381536454b9b7b22104ec8a79a0e;hb=97c4fe768f8f0d26eddd3a6da23d4f2700102dc0;hp=2035dc37cb96e6eadbc4e9fd6c87f5da4d705450;hpb=8906b92a00b4907e620e80624fb6ac6baa368bed;p=civicrm-core.git diff --git a/CRM/Core/BAO/CustomOption.php b/CRM/Core/BAO/CustomOption.php index 2035dc37cb..bf2cb527d9 100644 --- a/CRM/Core/BAO/CustomOption.php +++ b/CRM/Core/BAO/CustomOption.php @@ -66,9 +66,10 @@ class CRM_Core_BAO_CustomOption { /** * 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 */ @@ -113,6 +114,7 @@ class CRM_Core_BAO_CustomOption { * * @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) * @@ -210,6 +212,11 @@ WHERE id = %1"; } } + /** + * @param $params + * + * @throws Exception + */ static function updateCustomValues($params) { $optionDAO = new CRM_Core_DAO_OptionValue(); $optionDAO->id = $params['optionId']; @@ -277,6 +284,12 @@ SET {$dao->columnName} = REPLACE( {$dao->columnName}, %1, %2 )"; } } + /** + * @param $customFieldID + * @param null $optionGroupID + * + * @return array + */ static function valuesByID($customFieldID, $optionGroupID = NULL) { if (!$optionGroupID) { $optionGroupID = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_CustomField',