SFFormUtils Class Reference

List of all members.

Static Public Member Functions

static setGlobalJSVariables (&$vars)
static unhandledFieldsHTML ($templateName, $templateContents)
 Add a hidden input for each field in the template call that's not handled by the form itself.
static addUnhandledFields ($templateName)
 Add unhandled fields back into the template call that the form generates, so that editing with a form will have no effect on them.
static summaryInputHTML ($is_disabled, $label=null, $attr=array())
static minorEditInputHTML ($is_disabled, $label=null, $attrs=array())
static watchInputHTML ($is_disabled, $label=null, $attrs=array())
static buttonHTML ($name, $value, $type, $attrs)
 Helper function to display a simple button.
static saveButtonHTML ($is_disabled, $label=null, $attr=array())
static saveAndContinueButtonHTML ($is_disabled, $label=null, $attr=array())
static showPreviewButtonHTML ($is_disabled, $label=null, $attr=array())
static showChangesButtonHTML ($is_disabled, $label=null, $attr=array())
static cancelLinkHTML ($is_disabled, $label=null, $attr=array())
static runQueryButtonHTML ($is_disabled=false, $label=null, $attr=array())
static formBottom ($is_disabled)
static getPreloadedText ($preload)
static queryFormBottom ()
 Used by 'RunQuery' page.
static getMonthNames ()
static getShowFCKEditor ()
static prepareTextForFCK ($text)
static mainFCKJavascript ($showFCKEditor, $fieldArgs)
static FCKToggleJavascript ()
static FCKPopupJavascript ()
static getFormDefinition (&$parser, &$form_def=null, &$form_id=null)
 Parse the form definition and return it.
static purgeCache (&$wikipage)
 Deletes the form definition associated with the given wiki page from the main cache.
static getFormCache ()
 Get the cache object used by the form cache.
static getCacheKey ($formId=null, &$parser=null)
 Get a cache key.

Static Protected Member Functions

static getFormDefinitionFromCache (&$form_id, &$parser)
 Get a form definition from cache.
static cacheFormDefinition (&$form_id, &$parser, &$output)
 Store a form definition in cache.


Detailed Description

Definition at line 13 of file SF_FormUtils.php.


Member Function Documentation

static SFFormUtils::setGlobalJSVariables ( &$  vars  )  [static]

static SFFormUtils::unhandledFieldsHTML ( templateName,
templateContents 
) [static]

Add a hidden input for each field in the template call that's not handled by the form itself.

Definition at line 48 of file SF_FormUtils.php.

Referenced by SFFormPrinter::formHTML().

static SFFormUtils::addUnhandledFields ( templateName  )  [static]

Add unhandled fields back into the template call that the form generates, so that editing with a form will have no effect on them.

Definition at line 63 of file SF_FormUtils.php.

Referenced by SFFormPrinter::formHTML().

static SFFormUtils::summaryInputHTML ( is_disabled,
label = null,
attr = array() 
) [static]

Definition at line 78 of file SF_FormUtils.php.

References END.

Referenced by formBottom(), and SFFormPrinter::formHTML().

static SFFormUtils::minorEditInputHTML ( is_disabled,
label = null,
attrs = array() 
) [static]

Definition at line 94 of file SF_FormUtils.php.

Referenced by formBottom(), and SFFormPrinter::formHTML().

static SFFormUtils::watchInputHTML ( is_disabled,
label = null,
attrs = array() 
) [static]

Definition at line 122 of file SF_FormUtils.php.

References $wgTitle.

Referenced by formBottom(), and SFFormPrinter::formHTML().

static SFFormUtils::buttonHTML ( name,
value,
type,
attrs 
) [static]

Helper function to display a simple button.

Definition at line 162 of file SF_FormUtils.php.

static SFFormUtils::saveButtonHTML ( is_disabled,
label = null,
attr = array() 
) [static]

Definition at line 166 of file SF_FormUtils.php.

Referenced by formBottom(), and SFFormPrinter::formHTML().

static SFFormUtils::saveAndContinueButtonHTML ( is_disabled,
label = null,
attr = array() 
) [static]

Definition at line 185 of file SF_FormUtils.php.

Referenced by SFFormPrinter::formHTML().

static SFFormUtils::showPreviewButtonHTML ( is_disabled,
label = null,
attr = array() 
) [static]

Definition at line 211 of file SF_FormUtils.php.

Referenced by formBottom(), and SFFormPrinter::formHTML().

static SFFormUtils::showChangesButtonHTML ( is_disabled,
label = null,
attr = array() 
) [static]

Definition at line 230 of file SF_FormUtils.php.

Referenced by formBottom(), and SFFormPrinter::formHTML().

static SFFormUtils::cancelLinkHTML ( is_disabled,
label = null,
attr = array() 
) [static]

Definition at line 249 of file SF_FormUtils.php.

References $wgTitle.

Referenced by formBottom(), and SFFormPrinter::formHTML().

static SFFormUtils::runQueryButtonHTML ( is_disabled = false,
label = null,
attr = array() 
) [static]

Definition at line 271 of file SF_FormUtils.php.

Referenced by SFFormPrinter::formHTML().

static SFFormUtils::formBottom ( is_disabled  )  [static]

static SFFormUtils::getPreloadedText ( preload  )  [static]

Definition at line 324 of file SF_FormUtils.php.

Referenced by SFFormPrinter::formHTML(), and SFFormEdit::printForm().

static SFFormUtils::queryFormBottom (  )  [static]

Used by 'RunQuery' page.

Definition at line 346 of file SF_FormUtils.php.

Referenced by SFFormPrinter::formHTML().

static SFFormUtils::getMonthNames (  )  [static]

Definition at line 350 of file SF_FormUtils.php.

Referenced by SFFormPrinter::formHTML(), and SFDateInput::monthDropdownHTML().

static SFFormUtils::getShowFCKEditor (  )  [static]

Definition at line 368 of file SF_FormUtils.php.

Referenced by SFFormPrinter::formHTML().

static SFFormUtils::prepareTextForFCK ( text  )  [static]

Definition at line 398 of file SF_FormUtils.php.

References $wgTitle.

Referenced by SFFormPrinter::formHTML().

static SFFormUtils::mainFCKJavascript ( showFCKEditor,
fieldArgs 
) [static]

Definition at line 409 of file SF_FormUtils.php.

References $wgExtensionFunctions, $wgHooks, and END.

Referenced by SFFormPrinter::formHTML().

static SFFormUtils::FCKToggleJavascript (  )  [static]

Definition at line 696 of file SF_FormUtils.php.

References END, and simplejson::encoder::text.

static SFFormUtils::FCKPopupJavascript (  )  [static]

Definition at line 806 of file SF_FormUtils.php.

References END.

static SFFormUtils::getFormDefinition ( &$  parser,
&$  form_def = null,
&$  form_id = null 
) [static]

Parse the form definition and return it.

Definition at line 826 of file SF_FormUtils.php.

Referenced by SFFormPrinter::formHTML().

static SFFormUtils::getFormDefinitionFromCache ( &$  form_id,
&$  parser 
) [static, protected]

Get a form definition from cache.

Definition at line 870 of file SF_FormUtils.php.

References $sfgCacheFormDefinitions.

static SFFormUtils::cacheFormDefinition ( &$  form_id,
&$  parser,
&$  output 
) [static, protected]

Store a form definition in cache.

Definition at line 901 of file SF_FormUtils.php.

References $sfgCacheFormDefinitions.

static SFFormUtils::purgeCache ( &$  wikipage  )  [static]

Deletes the form definition associated with the given wiki page from the main cache.

Parameters:
Page $wikipage
Returns:
Bool

Definition at line 954 of file SF_FormUtils.php.

static SFFormUtils::getFormCache (  )  [static]

Get the cache object used by the form cache.

Definition at line 987 of file SF_FormUtils.php.

References $sfgFormCacheType.

static SFFormUtils::getCacheKey ( formId = null,
&$  parser = null 
) [static]

Get a cache key.

Parameters:
$formId or null
Parser $parser or null
Returns:
String

Definition at line 1001 of file SF_FormUtils.php.


The documentation for this class was generated from the following file:

Generated on Sun Mar 18 07:15:42 2012 for Semantic MediaWiki by  doxygen 1.5.6