CustomHtmlForm\Model\PageControllerExtension
Provides additional methods for Page.php used by the CustomHtmlForms module.
- Author: Sebastian Diel <sdiel@pixeltricks.de>
- Copyright: 2017 pixeltricks GmbH
- License: see license file in modules root directory
Synopsis
class PageControllerExtension
extends Extension
{
- // members
- public static bool $include_meta_content_language = true;
- private static array $allowed_actions = ;
- protected array $JavascriptOnloadSnippets = ;
- protected array $JavascriptSnippets = ;
- protected array $registeredCustomHtmlForms = ;
- public static bool $do_use_own_jquery = true;
- private static bool $load_jquery_dependencies = true;
- // methods
- public static void set_do_use_own_jquery()
- public static bool get_do_use_own_jquery()
- public static bool do_use_own_jquery()
- public static void set_load_jquery_dependencies()
- public static bool get_load_jquery_dependencies()
- public static bool load_jquery_dependencies()
- public void addJavascriptOnloadSnippet()
- public void addJavascriptSnippet()
- public void clearJavascriptSnippets()
- public void clearJavascriptOnloadSnippets()
- public void registerCustomHtmlForm()
- public void unRegisterCustomHtmlForm()
- public CustomHtmlForm|bool getRegisteredCustomHtmlForm()
- public array getRegisteredCustomHtmlForms()
- public void setRegisteredCustomHtmlForms()
- public CustomHtmlForm InsertCustomHtmlForm()
- public void onBeforeInit()
- public void onAfterInit()
- public mixed customHtmlFormSubmit()
- public void uploadifyUpload()
- public void uploadifyRefresh()
- public void uploadifyRemoveFile()
- protected void getFieldObject()
Hierarchy
Extends
- SilverStripe\Core\Extension
Members
private
- $allowed_actions
—
array
defines allowed methods - $load_jquery_dependencies
—
CustomHtmlForm\Model\bool
Determines whether to load the jQuery dependencies or not.
protected
- $JavascriptOnloadSnippets
—
array
Contains all JS blocks to be added to the onload-event - $JavascriptSnippets
—
array
Contains all JS blocks NOT to be added to the onload-event - $registeredCustomHtmlForms
—
array
contains a list of registerd custom html forms
public
- $do_use_own_jquery
—
CustomHtmlForm\Model\bool
Set this to false to not include CustomHtmlForms jQuery. - $include_meta_content_language
—
CustomHtmlForm\Model\bool
Set this to false if you do not want to include the meta-content-language-tag
Methods
protected
- getFieldObject() — Method Description
public
- InsertCustomHtmlForm() — returns HTML markup for the requested form
- addJavascriptOnloadSnippet() — adds a snippet to the list of JS onload events Fuegt ein Snippet in die Liste der Javascript Onload-Events ein.
- addJavascriptSnippet() — adds a snippet to the JS list to be added in the documents header
- clearJavascriptOnloadSnippets() — Clears all javascript onload snippets.
- clearJavascriptSnippets() — Clears all javascript snippets.
- customHtmlFormSubmit() — processor method for all customhtmlform forms
- do_use_own_jquery() — Returns whether to load the jQuery sources included in this module.
- getRegisteredCustomHtmlForm() — Returns the CustomHtmlForm object with the given identifier; if it's not found a boolean false is returned.
- getRegisteredCustomHtmlForms() — Returns all registered CustomHtmlForms.
- get_do_use_own_jquery() — Returns whether to load the jQuery sources included in this module.
- get_load_jquery_dependencies() — Returns whether to load the jQuery dependencies or not.
- load_jquery_dependencies() — Returns whether to load the jQuery dependencies or not.
- onAfterInit() — The onload and other javascript instructions are generated here.
- onBeforeInit() — load some requirements first
- registerCustomHtmlForm() — registers a form object
- setRegisteredCustomHtmlForms() — Sets the registered CustomHtmlForms.
- set_do_use_own_jquery() — Sets whether to load the jQuery sources included in this module.
- set_load_jquery_dependencies() — Sets whether to load the jQuery dependencies or not.
- unRegisterCustomHtmlForm() — unregisters a form object
- uploadifyRefresh() — wrapper for action to uploadify field
- uploadifyRemoveFile() — wrapper for action to uploadify field
- uploadifyUpload() — wrapper for action to uploadify field