X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=sidebyside;f=CRM%2FCustom%2FForm%2FChangeFieldType.php;h=bc57ce0c7945d341dd648de458b031c08df25114;hb=37a8abe77f14d752eb4692177d1ce24eef56f4f2;hp=4f3d0d7c526a4ce56fd1fe97cd7baf06c3df3732;hpb=d031c654f72b36c9f4d88bdb3dd55ddbadb98535;p=civicrm-core.git diff --git a/CRM/Custom/Form/ChangeFieldType.php b/CRM/Custom/Form/ChangeFieldType.php index 4f3d0d7c52..bc57ce0c79 100644 --- a/CRM/Custom/Form/ChangeFieldType.php +++ b/CRM/Custom/Form/ChangeFieldType.php @@ -195,6 +195,12 @@ class CRM_Custom_Form_ChangeFieldType extends CRM_Core_Form { ), ts('Field Type Changed'), 'success'); } + /** + * @param $dataType + * @param $htmlType + * + * @return array|null + */ static function fieldTypeTransitions($dataType, $htmlType) { // Text field is single value field, // can not be change to other single value option which contains option group @@ -293,6 +299,11 @@ class CRM_Custom_Form_ChangeFieldType extends CRM_Core_Form { } } + /** + * @param $str + * + * @return array + */ static function explode($str) { if (empty($str) || $str == CRM_Core_DAO::VALUE_SEPARATOR . CRM_Core_DAO::VALUE_SEPARATOR) { return array();