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

Variables

const PF_VERSION (defined( 'PF_VERSION')) '4.1.2'
 
 $GLOBALS ['wgExtensionCredits']['specialpage'][]
 
 $GLOBALS ['wgExtensionFunctions'][]
 
 $GLOBALS ['wgPageFormsIP'] = dirname( __FILE__ )
 
if(defined( 'SMW_VERSION')) else
 
 $GLOBALS ['wgHooks']['LinkEnd'][] = 'PFFormLinker::setBrokenLink'
 
 $GLOBALS ['wgHooks']['SkinTemplateTabs'][] = 'PFFormEditAction::displayTab'
 
 $GLOBALS ['wgHooks']['SkinTemplateNavigation'][] = 'PFFormEditAction::displayTab2'
 
 $GLOBALS ['wgHooks']['ArticlePurge'][] = 'PFFormUtils::purgeCache'
 
 $GLOBALS ['wgHooks']['ParserFirstCallInit'][] = 'PFHooks::registerFunctions'
 
 $GLOBALS ['wgHooks']['MakeGlobalVariablesScript'][] = 'PFHooks::setGlobalJSVariables'
 
 $GLOBALS ['wgHooks']['PageSchemasRegisterHandlers'][] = 'PFPageSchemas::registerClass'
 
 $GLOBALS ['wgHooks']['EditPage::importFormData'][] = 'PFHooks::showFormPreview'
 
 $GLOBALS ['wgHooks']['CanonicalNamespaces'][] = 'PFHooks::registerNamespaces'
 
 $GLOBALS ['wgHooks']['UnitTestsList'][] = 'PFHooks::onUnitTestsList'
 
 $GLOBALS ['wgHooks']['ResourceLoaderRegisterModules'][] = 'PFHooks::registerModules'
 
 $GLOBALS ['wgActions']['formedit'] = 'PFFormEditAction'
 
 $GLOBALS ['wgActions']['formcreate'] = 'PFHelperFormAction'
 
 $GLOBALS ['wgAPIModules']['pfautocomplete'] = 'PFAutocompleteAPI'
 
 $GLOBALS ['wgAPIModules']['pfautoedit'] = 'PFAutoeditAPI'
 
 $GLOBALS ['wgSpecialPages']['Forms'] = 'PFForms'
 
 $GLOBALS ['wgAutoloadClasses']['PFForms'] = __DIR__ . '/specials/PF_Forms.php'
 
 $GLOBALS ['wgSpecialPages']['CreateForm'] = 'PFCreateForm'
 
 $GLOBALS ['wgAutoloadClasses']['PFCreateForm'] = __DIR__ . '/specials/PF_CreateForm.php'
 
 $GLOBALS ['wgSpecialPages']['Templates'] = 'PFTemplates'
 
 $GLOBALS ['wgAutoloadClasses']['PFTemplates'] = __DIR__ . '/specials/PF_Templates.php'
 
 $GLOBALS ['wgSpecialPages']['CreateTemplate'] = 'PFCreateTemplate'
 
 $GLOBALS ['wgAutoloadClasses']['PFCreateTemplate'] = __DIR__ . '/specials/PF_CreateTemplate.php'
 
if(defined( 'SMW_VERSION')) $GLOBALS ['wgSpecialPages']['CreateClass'] = 'PFCreateClass'
 
 $GLOBALS ['wgAutoloadClasses']['PFCreateClass'] = __DIR__ . '/specials/PF_CreateClass.php'
 
 $GLOBALS ['wgSpecialPages']['CreateCategory'] = 'PFCreateCategory'
 
 $GLOBALS ['wgAutoloadClasses']['PFCreateCategory'] = __DIR__ . '/specials/PF_CreateCategory.php'
 
 $GLOBALS ['wgSpecialPages']['FormStart'] = 'PFFormStart'
 
 $GLOBALS ['wgAutoloadClasses']['PFFormStart'] = __DIR__ . '/specials/PF_FormStart.php'
 
 $GLOBALS ['wgSpecialPages']['FormEdit'] = 'PFFormEdit'
 
 $GLOBALS ['wgAutoloadClasses']['PFFormEdit'] = __DIR__ . '/specials/PF_FormEdit.php'
 
 $GLOBALS ['wgSpecialPages']['RunQuery'] = 'PFRunQuery'
 
 $GLOBALS ['wgAutoloadClasses']['PFRunQuery'] = __DIR__ . '/specials/PF_RunQuery.php'
 
 $GLOBALS ['wgSpecialPages']['UploadWindow'] = 'PFUploadWindow'
 
 $GLOBALS ['wgAutoloadClasses']['PFUploadForm'] = __DIR__ . '/specials/PF_UploadForm.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFUploadSourceField'] = __DIR__ . '/specials/PF_UploadSourceField.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFUploadWindow'] = __DIR__ . '/specials/PF_UploadWindow.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFTemplateField'] = __DIR__ . '/includes/PF_TemplateField.php'
 
 $GLOBALS ['wgAutoloadClasses']['TemplatesPage'] = __DIR__ . '/specials/PF_Templates.php'
 
 $GLOBALS ['wgAutoloadClasses']['FormsPage'] = __DIR__ . '/specials/PF_Forms.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFForm'] = __DIR__ . '/includes/PF_Form.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFTemplate'] = __DIR__ . '/includes/PF_Template.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFTemplateInForm'] = __DIR__ . '/includes/PF_TemplateInForm.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFFormField'] = __DIR__ . '/includes/PF_FormField.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFFormPrinter'] = __DIR__ . '/includes/PF_FormPrinter.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFFormUtils'] = __DIR__ . '/includes/PF_FormUtils.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFUtils'] = __DIR__ . '/includes/PF_Utils.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFValuesUtils'] = __DIR__ . '/includes/PF_ValuesUtils.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFHooks'] = __DIR__ . '/includes/PF_Hooks.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFFormLinker'] = __DIR__ . '/includes/PF_FormLinker.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFPageSchemas'] = __DIR__ . '/includes/PF_PageSchemas.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFParserFunctions'] = __DIR__ . '/includes/PF_ParserFunctions.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFAutocompleteAPI'] = __DIR__ . '/includes/PF_AutocompleteAPI.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFAutoeditAPI'] = __DIR__ . '/includes/PF_AutoeditAPI.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFFormEditAction'] = __DIR__ . '/includes/PF_FormEditAction.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFHelperFormAction'] = __DIR__ . '/includes/PF_HelperFormAction.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFPageSection'] = __DIR__ . '/includes/PF_PageSection.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFFormInput'] = __DIR__ . '/includes/forminputs/PF_FormInput.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFTextInput'] = __DIR__ . '/includes/forminputs/PF_TextInput.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFTextWithAutocompleteInput'] = __DIR__ . '/includes/forminputs/PF_TextWithAutocompleteInput.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFTextAreaInput'] = __DIR__ . '/includes/forminputs/PF_TextAreaInput.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFTextAreaWithAutocompleteInput'] = __DIR__ . '/includes/forminputs/PF_TextAreaWithAutocompleteInput.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFEnumInput'] = __DIR__ . '/includes/forminputs/PF_EnumInput.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFMultiEnumInput'] = __DIR__ . '/includes/forminputs/PF_MultiEnumInput.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFCheckboxInput'] = __DIR__ . '/includes/forminputs/PF_CheckboxInput.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFCheckboxesInput'] = __DIR__ . '/includes/forminputs/PF_CheckboxesInput.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFRadioButtonInput'] = __DIR__ . '/includes/forminputs/PF_RadioButtonInput.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFDropdownInput'] = __DIR__ . '/includes/forminputs/PF_DropdownInput.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFListBoxInput'] = __DIR__ . '/includes/forminputs/PF_ListBoxInput.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFComboBoxInput'] = __DIR__ . '/includes/forminputs/PF_ComboBoxInput.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFDateInput'] = __DIR__ . '/includes/forminputs/PF_DateInput.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFDatePickerInput'] = __DIR__ . '/includes/forminputs/PF_DatePickerInput.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFTimePickerInput'] = __DIR__ . '/includes/forminputs/PF_TimePickerInput.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFDateTimePicker'] = __DIR__ . '/includes/forminputs/PF_DateTimePicker.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFDateTimeInput'] = __DIR__ . '/includes/forminputs/PF_DateTimeInput.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFYearInput'] = __DIR__ . '/includes/forminputs/PF_YearInput.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFTreeInput'] = __DIR__ . '/includes/forminputs/PF_TreeInput.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFTree'] = __DIR__ . '/includes/forminputs/PF_Tree.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFTokensInput'] = __DIR__ . '/includes/forminputs/PF_TokensInput.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFGoogleMapsInput'] = __DIR__ . '/includes/forminputs/PF_GoogleMapsInput.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFOpenLayersInput'] = __DIR__ . '/includes/forminputs/PF_OpenLayersInput.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFRegExpInput'] = __DIR__ . '/includes/forminputs/PF_RegExpInput.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFRatingInput'] = __DIR__ . '/includes/forminputs/PF_RatingInput.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFWikiPage'] = __DIR__ . '/includes/wikipage/PF_WikiPage.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFWikiPageTemplate'] = __DIR__ . '/includes/wikipage/PF_WikiPageTemplate.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFWikiPageTemplateParam'] = __DIR__ . '/includes/wikipage/PF_WikiPageTemplateParam.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFWikiPageSection'] = __DIR__ . '/includes/wikipage/PF_WikiPageSection.php'
 
 $GLOBALS ['wgAutoloadClasses']['PFWikiPageFreeText'] = __DIR__ . '/includes/wikipage/PF_WikiPageFreeText.php'
 
 $GLOBALS ['wgJobClasses']['createPage'] = 'PFCreatePageJob'
 
 $GLOBALS ['wgAutoloadClasses']['PFCreatePageJob'] = __DIR__ . '/includes/PF_CreatePageJob.php'
 
 $GLOBALS ['wgMessagesDirs']['PageForms'] = __DIR__ . '/i18n'
 
 $GLOBALS ['wgExtensionMessagesFiles']['PageForms'] = __DIR__ . '/languages/PF_Messages.php'
 
 $GLOBALS ['wgExtensionMessagesFiles']['PageFormsAlias'] = __DIR__ . '/languages/PF_Aliases.php'
 
 $GLOBALS ['wgExtensionMessagesFiles']['PageFormsMagic'] = __DIR__ . '/languages/PF_Magic.php'
 
 $GLOBALS ['wgExtensionMessagesFiles']['PageFormsNS'] = __DIR__ . '/languages/PF_Namespaces.php'
 
 $GLOBALS ['wgEditPageFrameOptions'] = 'SAMEORIGIN'
 
 $wgPageFormsResourceTemplate
 
 $GLOBALS ['wgResourceModules']
 
 $GLOBALS ['wgPageFormsMaxAutocompleteValues'] = 1000
 
 $GLOBALS ['wgPageFormsMaxLocalAutocompleteValues'] = 100
 
 $GLOBALS ['wgPageFormsAutocompleteOnAllChars'] = false
 
 $GLOBALS ['wgPageFormsCacheAutocompleteValues'] = false
 
 $GLOBALS ['wgPageFormsAutocompleteCacheTimeout'] = null
 
 $GLOBALS ['wgPageFormsRenameEditTabs'] = false
 
 $GLOBALS ['wgPageFormsRenameMainEditTab'] = false
 
 $GLOBALS ['wgGroupPermissions']['*']['viewedittab'] = true
 
 $GLOBALS ['wgAvailableRights'][] = 'viewedittab'
 
 $GLOBALS ['wgGroupPermissions']['sysop']['editrestrictedfields'] = true
 
 $GLOBALS ['wgGroupPermissions']['user']['createclass'] = true
 
 $GLOBALS ['wgPageFormsListSeparator'] = ","
 
 $GLOBALS ['wgPageForms24HourTime'] = false
 
 $GLOBALS ['wgPageFormsCacheFormDefinitions'] = false
 
 $GLOBALS ['wgPageFormsFormCacheType'] = null
 
 $GLOBALS ['wgPageFormsLinkAllRedLinksToForms'] = false
 
 $GLOBALS ['wgPageFormsShowTabPForAllHelperForms'] = true
 
 $GLOBALS ['wgPageFormsRunQueryFormAtTop'] = false
 
 $GLOBALS ['wgPageFormsGoogleMapsKey'] = null
 
 $GLOBALS ['wgPageFormsUseDisplayTitle'] = false
 
 $GLOBALS ['wgPageFormsSimpleUpload'] = false
 
 $GLOBALS ['wgPageFormsDisableOutsideServices'] = false
 
 $GLOBALS ['wgPageFormsShowOnSelect'] = array()
 
 $GLOBALS ['wgPageFormsAutocompleteValues'] = array()
 
 $GLOBALS ['wgPageFormsGridValues'] = array()
 
 $GLOBALS ['wgPageFormsGridParams'] = array()
 
 $GLOBALS ['wgPageFormsFieldProperties'] = array()
 
 $GLOBALS ['wgPageFormsCargoFields'] = array()
 
 $GLOBALS ['wgPageFormsDependentFields'] = array()
 
 $GLOBALS ['wgPageFormsCheckboxesSelectAllMinimum'] = 10
 
 $GLOBALS ['smwgEnabledSpecialPage'][] = 'RunQuery'
 

Detailed Description

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

Variable Documentation

$GLOBALS['wgExtensionCredits']['specialpage'][]
Initial value:
= array(
'path' => __FILE__,
'name' => 'Page Forms',
'version' => PF_VERSION,
'author' => array( 'Yaron Koren', 'Stephan Gambke', '...' ),
'url' => 'https://www.mediawiki.org/wiki/Extension:Page_Forms',
'descriptionmsg' => 'pageforms-desc',
'license-name' => 'GPL-2.0+'
)
$GLOBALS['wgExtensionFunctions'][]
Initial value:
= function() {
$GLOBALS['wgPageFormsPartialPath'] = '/extensions/PageForms';
$GLOBALS['wgPageFormsScriptPath'] = $GLOBALS['wgScriptPath'] . $GLOBALS['wgPageFormsPartialPath'];
}
$GLOBALS['wgPageFormsFormCacheType']
Definition: PageForms.php:552
$GLOBALS['wgPageFormsFormCacheType'] = 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['wgPageFormsCheckboxesSelectAllMinimum'] = 10

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

$wgPageFormsResourceTemplate
Initial value:
= array(
'localBasePath' => __DIR__,
'remoteExtPath' => 'PageForms'
)
if (defined( 'SMW_VERSION')) else
Initial value:
{
$GLOBALS['wgPageFormsFormPrinter'] = new StubObject( 'wgPageFormsFormPrinter', 'PFFormPrinter' )
$GLOBALS['wgPageFormsFormCacheType']
Definition: PageForms.php:552
Definition: StubObject.php:44