Get a human-readable representation of the column type.
public static VerboseTypeName ( $p_typeName, $p_languageId = 1, $p_rootTopicId = null ) : string | ||
return | string |
$articleField = new ArticleTypeField($articleTypeName, $articleTypeFieldName); $crumbs = array(); $crumbs[] = array(getGS("Configure"), ""); $crumbs[] = array(getGS("Article Types"), "/{$ADMIN}/article_types/"); $crumbs[] = array($articleTypeName, ''); $crumbs[] = array(getGS("Article type fields"), "/{$ADMIN}/article_types/fields/?f_article_type=" . urlencode($articleTypeName)); $crumbs[] = array(getGS("Reassign a field type"), ""); echo camp_html_breadcrumbs($crumbs); include_once $GLOBALS['g_campsiteDir'] . "/{$ADMIN_DIR}/javascript_common.php"; $lang = camp_session_get('LoginLanguageId', 1); $languageObj = new Language($lang); // Verify the merge rules $options = array(); $convertibleFromTypes = $articleField->getConvertibleToTypes(); foreach ($convertibleFromTypes as $type) { $options[$type] = ArticleTypeField::VerboseTypeName($type, $languageObj->getLanguageId()); } ?> <script> function UpdateArticleFieldContext() { var my_form = document.forms["add_field_form"] var field_type = my_form.elements["f_article_field_type"].value var is_topic = my_form.elements["is_topic"].value if ((is_topic == "false" && field_type == "topic") || (is_topic == "true" && field_type != "topic")) { ToggleRowVisibility('topic_list') ToggleBoolValue('is_topic') } } </script>
$topics = $cacheService->fetch($cacheKey); } else { $topicsQuery = $repository->getTranslatableTopics($langObj->getCode()); $topics = $topicsQuery->getResult(); $cacheService->save($cacheKey, $topics); } $crumbs = array(); $crumbs[] = array($translator->trans('Configure'), ""); $crumbs[] = array($translator->trans('Article Types'), "/{$ADMIN}/article_types/"); $crumbs[] = array($articleTypeName, ''); $crumbs[] = array($translator->trans("Article type fields", array(), 'article_type_fields'), "/{$ADMIN}/article_types/fields/?f_article_type=" . urlencode($articleTypeName)); $crumbs[] = array($translator->trans("Add new field", array(), 'article_type_fields'), ""); echo camp_html_breadcrumbs($crumbs); include_once $GLOBALS['g_campsiteDir'] . "/{$ADMIN_DIR}/javascript_common.php"; foreach (ArticleTypeField::DatabaseTypes() as $type => $sqlDesc) { $options[$type] = ArticleTypeField::VerboseTypeName($type, $currentLanguageId); } ?> <script> function UpdateArticleFieldContext() { var my_form = document.forms["add_field_form"] var field_type = my_form.elements["f_article_field_type"].value var is_topic = my_form.elements["is_topic"].value if ((is_topic == "false" && field_type == "topic") || (is_topic == "true" && field_type != "topic")) { ToggleRowVisibility('topic_list') ToggleBoolValue('is_topic') } var show_is_content = my_form.elements["show_is_content"].value