BlueSpice MediaWiki REL1_27
 All Classes Namespaces Files Functions Variables Groups Pages
SemanticForms.php File Reference

Variables

const SF_VERSION (defined( 'SF_VERSION')) '3.7'
 
if(!defined( 'SF_NS_FORM')) $GLOBALS ['wgExtensionCredits']['specialpage'][]
 
 $GLOBALS ['wgExtensionFunctions'][]
 
 $GLOBALS ['sfgIP'] = dirname( __FILE__ )
 
const SF_SP_HAS_DEFAULT_FORM 1
 
const SF_SP_HAS_ALTERNATE_FORM 2
 
const SF_SP_CREATES_PAGES_WITH_FORM 3
 
const SF_SP_PAGE_HAS_DEFAULT_FORM 4
 
const SF_SP_HAS_FIELD_LABEL_FORMAT 5
 
if(defined( 'SMW_VERSION')) else
 
 $GLOBALS ['wgHooks']['LinkEnd'][] = 'SFFormLinker::setBrokenLink'
 
 $GLOBALS ['wgHooks']['SkinTemplateTabs'][] = 'SFFormEditAction::displayTab'
 
 $GLOBALS ['wgHooks']['SkinTemplateNavigation'][] = 'SFFormEditAction::displayTab2'
 
 $GLOBALS ['wgHooks']['smwInitProperties'][] = 'SFHooks::initProperties'
 
 $GLOBALS ['wgHooks']['ArticlePurge'][] = 'SFFormUtils::purgeCache'
 
 $GLOBALS ['wgHooks']['ParserFirstCallInit'][] = 'SFHooks::registerFunctions'
 
 $GLOBALS ['wgHooks']['MakeGlobalVariablesScript'][] = 'SFHooks::setGlobalJSVariables'
 
 $GLOBALS ['wgHooks']['PageSchemasRegisterHandlers'][] = 'SFPageSchemas::registerClass'
 
 $GLOBALS ['wgHooks']['EditPage::importFormData'][] = 'SFHooks::showFormPreview'
 
 $GLOBALS ['wgHooks']['CanonicalNamespaces'][] = 'SFHooks::registerNamespaces'
 
 $GLOBALS ['wgHooks']['UnitTestsList'][] = 'SFHooks::onUnitTestsList'
 
 $GLOBALS ['wgHooks']['ResourceLoaderRegisterModules'][] = 'SFHooks::registerModules'
 
 $GLOBALS ['wgActions']['formedit'] = 'SFFormEditAction'
 
 $GLOBALS ['wgActions']['formcreate'] = 'SFHelperFormAction'
 
 $GLOBALS ['wgAPIModules']['sfautocomplete'] = 'SFAutocompleteAPI'
 
 $GLOBALS ['wgAPIModules']['sfautoedit'] = 'SFAutoeditAPI'
 
 $GLOBALS ['wgSpecialPages']['Forms'] = 'SFForms'
 
 $GLOBALS ['wgAutoloadClasses']['SFForms'] = __DIR__ . '/specials/SF_Forms.php'
 
 $GLOBALS ['wgSpecialPages']['CreateForm'] = 'SFCreateForm'
 
 $GLOBALS ['wgAutoloadClasses']['SFCreateForm'] = __DIR__ . '/specials/SF_CreateForm.php'
 
 $GLOBALS ['wgSpecialPages']['Templates'] = 'SFTemplates'
 
 $GLOBALS ['wgAutoloadClasses']['SFTemplates'] = __DIR__ . '/specials/SF_Templates.php'
 
 $GLOBALS ['wgSpecialPages']['CreateTemplate'] = 'SFCreateTemplate'
 
 $GLOBALS ['wgAutoloadClasses']['SFCreateTemplate'] = __DIR__ . '/specials/SF_CreateTemplate.php'
 
if(defined( 'SMW_VERSION')) $GLOBALS ['wgSpecialPages']['CreateClass'] = 'SFCreateClass'
 
 $GLOBALS ['wgAutoloadClasses']['SFCreateClass'] = __DIR__ . '/specials/SF_CreateClass.php'
 
 $GLOBALS ['wgSpecialPages']['CreateCategory'] = 'SFCreateCategory'
 
 $GLOBALS ['wgAutoloadClasses']['SFCreateCategory'] = __DIR__ . '/specials/SF_CreateCategory.php'
 
 $GLOBALS ['wgSpecialPages']['FormStart'] = 'SFFormStart'
 
 $GLOBALS ['wgAutoloadClasses']['SFFormStart'] = __DIR__ . '/specials/SF_FormStart.php'
 
 $GLOBALS ['wgSpecialPages']['FormEdit'] = 'SFFormEdit'
 
 $GLOBALS ['wgAutoloadClasses']['SFFormEdit'] = __DIR__ . '/specials/SF_FormEdit.php'
 
 $GLOBALS ['wgSpecialPages']['RunQuery'] = 'SFRunQuery'
 
 $GLOBALS ['wgAutoloadClasses']['SFRunQuery'] = __DIR__ . '/specials/SF_RunQuery.php'
 
 $GLOBALS ['wgSpecialPages']['UploadWindow'] = 'SFUploadWindow'
 
 $GLOBALS ['wgAutoloadClasses']['SFUploadForm'] = __DIR__ . '/specials/SF_UploadWindow.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFUploadSourceField'] = __DIR__ . '/specials/SF_UploadWindow.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFUploadWindow'] = __DIR__ . '/specials/SF_UploadWindow.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFTemplateField'] = __DIR__ . '/includes/SF_TemplateField.php'
 
 $GLOBALS ['wgAutoloadClasses']['TemplatesPage'] = __DIR__ . '/specials/SF_Templates.php'
 
 $GLOBALS ['wgAutoloadClasses']['FormsPage'] = __DIR__ . '/specials/SF_Forms.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFForm'] = __DIR__ . '/includes/SF_Form.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFTemplate'] = __DIR__ . '/includes/SF_Template.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFTemplateInForm'] = __DIR__ . '/includes/SF_TemplateInForm.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFFormField'] = __DIR__ . '/includes/SF_FormField.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFFormPrinter'] = __DIR__ . '/includes/SF_FormPrinter.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFFormUtils'] = __DIR__ . '/includes/SF_FormUtils.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFUtils'] = __DIR__ . '/includes/SF_Utils.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFValuesUtils'] = __DIR__ . '/includes/SF_ValuesUtils.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFHooks'] = __DIR__ . '/includes/SF_Hooks.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFFormLinker'] = __DIR__ . '/includes/SF_FormLinker.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFPageSchemas'] = __DIR__ . '/includes/SF_PageSchemas.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFParserFunctions'] = __DIR__ . '/includes/SF_ParserFunctions.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFAutocompleteAPI'] = __DIR__ . '/includes/SF_AutocompleteAPI.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFAutoeditAPI'] = __DIR__ . '/includes/SF_AutoeditAPI.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFFormEditAction'] = __DIR__ . '/includes/SF_FormEditAction.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFHelperFormAction'] = __DIR__ . '/includes/SF_HelperFormAction.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFPageSection'] = __DIR__ . '/includes/SF_PageSection.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFFormInput'] = __DIR__ . '/includes/forminputs/SF_FormInput.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFTextInput'] = __DIR__ . '/includes/forminputs/SF_TextInput.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFTextWithAutocompleteInput'] = __DIR__ . '/includes/forminputs/SF_TextWithAutocompleteInput.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFTextAreaInput'] = __DIR__ . '/includes/forminputs/SF_TextAreaInput.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFTextAreaWithAutocompleteInput'] = __DIR__ . '/includes/forminputs/SF_TextAreaWithAutocompleteInput.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFEnumInput'] = __DIR__ . '/includes/forminputs/SF_EnumInput.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFMultiEnumInput'] = __DIR__ . '/includes/forminputs/SF_MultiEnumInput.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFCheckboxInput'] = __DIR__ . '/includes/forminputs/SF_CheckboxInput.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFCheckboxesInput'] = __DIR__ . '/includes/forminputs/SF_CheckboxesInput.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFRadioButtonInput'] = __DIR__ . '/includes/forminputs/SF_RadioButtonInput.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFDropdownInput'] = __DIR__ . '/includes/forminputs/SF_DropdownInput.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFListBoxInput'] = __DIR__ . '/includes/forminputs/SF_ListBoxInput.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFComboBoxInput'] = __DIR__ . '/includes/forminputs/SF_ComboBoxInput.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFDateInput'] = __DIR__ . '/includes/forminputs/SF_DateInput.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFDatePickerInput'] = __DIR__ . '/includes/forminputs/SF_DatePickerInput.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFDateTimeInput'] = __DIR__ . '/includes/forminputs/SF_DateTimeInput.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFYearInput'] = __DIR__ . '/includes/forminputs/SF_YearInput.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFTreeInput'] = __DIR__ . '/includes/forminputs/SF_TreeInput.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFTree'] = __DIR__ . '/includes/forminputs/SF_TreeInput.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFCategoryInput'] = __DIR__ . '/includes/forminputs/SF_CategoryInput.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFCategoriesInput'] = __DIR__ . '/includes/forminputs/SF_CategoriesInput.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFTokensInput'] = __DIR__ . '/includes/forminputs/SF_TokensInput.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFGoogleMapsInput'] = __DIR__ . '/includes/forminputs/SF_GoogleMapsInput.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFOpenLayersInput'] = __DIR__ . '/includes/forminputs/SF_OpenLayersInput.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFRegExpInput'] = __DIR__ . '/includes/forminputs/SF_RegExpInput.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFWikiPage'] = __DIR__ . '/includes/wikipage/SF_WikiPage.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFWikiPageTemplate'] = __DIR__ . '/includes/wikipage/SF_WikiPageTemplate.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFWikiPageTemplateParam'] = __DIR__ . '/includes/wikipage/SF_WikiPageTemplateParam.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFWikiPageSection'] = __DIR__ . '/includes/wikipage/SF_WikiPageSection.php'
 
 $GLOBALS ['wgAutoloadClasses']['SFWikiPageFreeText'] = __DIR__ . '/includes/wikipage/SF_WikiPageFreeText.php'
 
 $GLOBALS ['wgJobClasses']['createPage'] = 'SFCreatePageJob'
 
 $GLOBALS ['wgAutoloadClasses']['SFCreatePageJob'] = __DIR__ . '/includes/SF_CreatePageJob.php'
 
 $GLOBALS ['wgAutoloadClasses']['SF_Language'] = __DIR__ . '/languages/SF_Language.php'
 
 $GLOBALS ['wgMessagesDirs']['SemanticForms'] = __DIR__ . '/i18n'
 
 $GLOBALS ['wgExtensionMessagesFiles']['SemanticForms'] = __DIR__ . '/languages/SF_Messages.php'
 
 $GLOBALS ['wgExtensionMessagesFiles']['SemanticFormsAlias'] = __DIR__ . '/languages/SF_Aliases.php'
 
 $GLOBALS ['wgExtensionMessagesFiles']['SemanticFormsMagic'] = __DIR__ . '/languages/SF_Magic.php'
 
 $GLOBALS ['wgExtensionMessagesFiles']['SemanticFormsNS'] = __DIR__ . '/languages/SF_Namespaces.php'
 
 $GLOBALS ['wgEditPageFrameOptions'] = 'SAMEORIGIN'
 
 $sfgResourceTemplate
 
 $GLOBALS ['wgResourceModules']
 
 $GLOBALS ['sfgMaxAutocompleteValues'] = 1000
 
 $GLOBALS ['sfgMaxLocalAutocompleteValues'] = 100
 
 $GLOBALS ['sfgAutocompleteOnAllChars'] = false
 
 $GLOBALS ['sfgCacheAutocompleteValues'] = false
 
 $GLOBALS ['sfgAutocompleteCacheTimeout'] = null
 
 $GLOBALS ['sfgRenameEditTabs'] = false
 
 $GLOBALS ['sfgRenameMainEditTab'] = false
 
 $GLOBALS ['wgGroupPermissions']['*']['viewedittab'] = true
 
 $GLOBALS ['wgAvailableRights'][] = 'viewedittab'
 
 $GLOBALS ['wgGroupPermissions']['sysop']['editrestrictedfields'] = true
 
 $GLOBALS ['wgGroupPermissions']['user']['createclass'] = true
 
 $GLOBALS ['sfgListSeparator'] = ","
 
 $GLOBALS ['sfg24HourTime'] = false
 
 $GLOBALS ['sfgCacheFormDefinitions'] = false
 
 $GLOBALS ['sfgFormCacheType'] = null
 
 $GLOBALS ['sfgLinkAllRedLinksToForms'] = false
 
 $GLOBALS ['sfgRedLinksCheckOnlyLocalProps'] = false
 
 $GLOBALS ['sfgShowTabsForAllHelperForms'] = true
 
 $GLOBALS ['sfgRunQueryFormAtTop'] = false
 
 $GLOBALS ['sfgGoogleMapsKey'] = null
 
 $GLOBALS ['sfgShowOnSelect'] = array()
 
 $GLOBALS ['sfgAutocompleteValues'] = array()
 
 $GLOBALS ['sfgGridValues'] = array()
 
 $GLOBALS ['sfgGridParams'] = array()
 
 $GLOBALS ['sfgFieldProperties'] = array()
 
 $GLOBALS ['sfgCargoFields'] = array()
 
 $GLOBALS ['sfgDependentFields'] = array()
 
 $GLOBALS ['sfgCheckboxesSelectAllMinimum'] = 10
 
 $GLOBALS ['smwgEnabledSpecialPage'][] = 'RunQuery'
 

Detailed Description

Note: When updating this file please also update extension.json with the same changes. Default settings for Semantic Forms.

Variable Documentation

if (!defined( 'SF_NS_FORM')) $GLOBALS['wgExtensionCredits']['specialpage'][]
Initial value:
= array(
'path' => __FILE__,
'name' => 'Semantic Forms',
'version' => SF_VERSION,
'author' => array( 'Yaron Koren', 'Stephan Gambke', '...' ),
'url' => 'https://www.mediawiki.org/wiki/Extension:Semantic_Forms',
'descriptionmsg' => 'semanticforms-desc',
'license-name' => 'GPL-2.0+'
)
$GLOBALS['wgExtensionFunctions'][]
Initial value:
= function() {
$GLOBALS['sfgPartialPath'] = '/extensions/SemanticForms';
$GLOBALS['sfgScriptPath'] = $GLOBALS['wgScriptPath'] . $GLOBALS['sfgPartialPath'];
}
$GLOBALS['sfgFormCacheType']
Definition: SemanticForms.php:562
$GLOBALS['sfgFormCacheType'] = null

The cache type for storing form definitions. This cache is similar in function to the parser cache. Is is used to store form data which is expensive to regenerate, and benefits from having plenty of storage space.

If this setting remains at null the setting for the $wgParserCacheType will be used.

For available types see $wgMainCacheType.

$GLOBALS['sfgCheckboxesSelectAllMinimum'] = 10

Minimum number of values in a checkboxes field to show the 'Select all'/'Select none' switches

$sfgResourceTemplate
Initial value:
= array(
'localBasePath' => __DIR__,
'remoteExtPath' => 'SemanticForms'
)
if (defined( 'SMW_VERSION')) else
Initial value:
{
$GLOBALS['sfgFormPrinter'] = new StubObject( 'sfgFormPrinter', 'SFFormPrinter' )
Definition: StubObject.php:44
$GLOBALS['sfgFormCacheType']
Definition: SemanticForms.php:562