Overview

Classes

  • Quform
  • Quform_Admin_InsertForm
  • Quform_Admin_Page
  • Quform_Admin_Page_Controller
  • Quform_Admin_Page_Dashboard
  • Quform_Admin_Page_Entries
  • Quform_Admin_Page_Entries_Edit
  • Quform_Admin_Page_Entries_List
  • Quform_Admin_Page_Entries_View
  • Quform_Admin_Page_Factory
  • Quform_Admin_Page_Forms_Add
  • Quform_Admin_Page_Forms_Edit
  • Quform_Admin_Page_Forms_List
  • Quform_Admin_Page_Help
  • Quform_Admin_Page_Preview
  • Quform_Admin_Page_Settings
  • Quform_Admin_Page_Tools
  • Quform_Admin_Page_Tools_ExportEntries
  • Quform_Admin_Page_Tools_ExportForm
  • Quform_Admin_Page_Tools_Home
  • Quform_Admin_Page_Tools_ImportForm
  • Quform_Admin_Page_Tools_Migrate
  • Quform_Admin_Page_Tools_Uninstall
  • Quform_Api
  • Quform_Block
  • Quform_Builder
  • Quform_Captcha
  • Quform_ClassLoader
  • Quform_Confirmation
  • Quform_Container
  • Quform_Dashboard_Widget
  • Quform_Dispatcher
  • Quform_Element
  • Quform_Element_Captcha
  • Quform_Element_Checkbox
  • Quform_Element_Column
  • Quform_Element_Container
  • Quform_Element_Container_Iterator
  • Quform_Element_Date
  • Quform_Element_Email
  • Quform_Element_Factory
  • Quform_Element_Field
  • Quform_Element_File
  • Quform_Element_Group
  • Quform_Element_Hidden
  • Quform_Element_Honeypot
  • Quform_Element_Html
  • Quform_Element_Multi
  • Quform_Element_Multiselect
  • Quform_Element_Name
  • Quform_Element_Page
  • Quform_Element_Password
  • Quform_Element_Radio
  • Quform_Element_Recaptcha
  • Quform_Element_Row
  • Quform_Element_Select
  • Quform_Element_Submit
  • Quform_Element_Text
  • Quform_Element_Textarea
  • Quform_Element_Time
  • Quform_Entry_Controller
  • Quform_Entry_Exporter
  • Quform_Entry_List_Settings
  • Quform_Entry_List_Table
  • Quform_Entry_Processor
  • Quform_Entry_UserSearcher
  • Quform_Filter_Abstract
  • Quform_Filter_Alpha
  • Quform_Filter_AlphaNumeric
  • Quform_Filter_Digits
  • Quform_Filter_Regex
  • Quform_Filter_Static
  • Quform_Filter_StripTags
  • Quform_Filter_Trim
  • Quform_Form
  • Quform_Form_Controller
  • Quform_Form_Exporter
  • Quform_Form_Factory
  • Quform_Form_Importer
  • Quform_Form_Iterator
  • Quform_Form_List_Settings
  • Quform_Form_List_Table
  • Quform_Form_Processor
  • Quform_License
  • Quform_Migrator
  • Quform_NonceRefresher
  • Quform_Notification
  • Quform_Notification_Resender
  • Quform_Options
  • Quform_Permissions
  • Quform_Repository
  • Quform_ScriptLoader
  • Quform_Session
  • Quform_Settings
  • Quform_Shortcode
  • Quform_Themes
  • Quform_TokenReplacer
  • Quform_Toolbar
  • Quform_Translations
  • Quform_Updater
  • Quform_Upgrader
  • Quform_Uploader
  • Quform_Validator_Abstract
  • Quform_Validator_Alpha
  • Quform_Validator_AlphaNumeric
  • Quform_Validator_Array
  • Quform_Validator_Captcha
  • Quform_Validator_Date
  • Quform_Validator_Digits
  • Quform_Validator_Duplicate
  • Quform_Validator_Email
  • Quform_Validator_FileUpload
  • Quform_Validator_GreaterThan
  • Quform_Validator_Honeypot
  • Quform_Validator_Identical
  • Quform_Validator_InArray
  • Quform_Validator_Length
  • Quform_Validator_LessThan
  • Quform_Validator_Recaptcha
  • Quform_Validator_Regex
  • Quform_Validator_Required
  • Quform_Validator_Static
  • Quform_Validator_Time
  • Quform_View
  • Quform_ViewFactory
  • Quform_Widget_Form
  • Quform_Widget_Popup

Interfaces

  • Quform_Attachable
  • Quform_Element_Editable
  • Quform_Filter_Interface
  • Quform_Validator_Interface
  • Overview
  • Class

Class Quform_ScriptLoader

Copyright: Copyright (c) 2009-2022 ThemeCatcher (https://www.themecatcher.net)
Located at Quform/ScriptLoader.php
Methods summary
public
# __construct( Quform_Options $options, Quform_Themes $themes, Quform_Repository $repository, Quform_Form_Factory $factory, Quform_Session $session )

Parameters

$options
$themes
$repository
$factory
$session
public
# enqueue( )

Enqueue the plugin scripts/styles

Enqueue the plugin scripts/styles

protected boolean
# shouldLoadScripts( )

Should the load the scripts/styles be loaded?

Should the load the scripts/styles be loaded?

Returns

boolean
protected
# enqueueStyles( )

Enqueue the plugin styles

Enqueue the plugin styles

public array
# getStyles( boolean $isPreview = false )

Get the styles to be enqueued

Get the styles to be enqueued

Parameters

$isPreview
True to get the styles for the form preview

Returns

array
protected
# enqueueScripts( )

Enqueue the plugin styles

Enqueue the plugin styles

public array
# getScripts( boolean $isPreview = false )

Get the scripts to be enqueued

Get the scripts to be enqueued

Parameters

$isPreview
True to get the scripts for the form preview

Returns

array
public array
# jsL10n( )

JavaScript localisation

JavaScript localisation

Returns

array
public
# printHeadScripts( )

Print head scripts

Print head scripts

protected boolean
# detectFormInContent( )

Check if the page content has one of the shortcodes

Check if the page content has one of the shortcodes

Returns

boolean
protected boolean
# detectFormInWidget( )

Check if there is one of the widgets on the current page

Check if there is one of the widgets on the current page

Returns

boolean
public
# handleSaveForm( array $config )

Update the feature cache and generate the CSS/JS files

Update the feature cache and generate the CSS/JS files

Parameters

$config
public
# handleActivateForms( array $ids )

Update the feature cache and move the custom CSS flag to active

Update the feature cache and move the custom CSS flag to active

Parameters

$ids
public
# handleDeactivateForms( array $ids )

Update the feature cache and move the custom CSS flag to inactive

Update the feature cache and move the custom CSS flag to inactive

Parameters

$ids
public
# handleDuplicateForms( array $ids )

Update the feature cache and generate the custom CSS file

Update the feature cache and generate the custom CSS file

Parameters

$ids
public
# handleTrashForms( array $ids )

Remove anything related to the form from the feature cache, and delete the form custom CSS file

Remove anything related to the form from the feature cache, and delete the form custom CSS file

Parameters

$ids
public
# handleUntrashForms( array $ids )

Handle untrashing forms

Handle untrashing forms

Parameters

$ids
public
# handleSaveSettings( )

Generate the custom CSS/JS files when the settings are saved

Generate the custom CSS/JS files when the settings are saved

public
# generateFiles( )

Generate the custom/combined CSS and JS files

Generate the custom/combined CSS and JS files

protected
# generateFormCssFile( Quform_Form[] $forms )

Generate the custom CSS file for the given forms

Generate the custom CSS file for the given forms

Parameters

$forms
The array of forms
protected
# generateCustomCssFile( )

Generate the custom CSS file which is all form custom CSS files combined into one

Generate the custom CSS file which is all form custom CSS files combined into one

protected
# generateCustomJsFile( )

Generate the custom JS file with the code from the Settings page

Generate the custom JS file with the code from the Settings page

protected
# generateCombinedCssFile( )

Generate the CSS file containing all plugin CSS files combined

Generate the CSS file containing all plugin CSS files combined

protected
# generateCombinedJsFile( )

Generate the JS file containing all plugin JS files combined

Generate the JS file containing all plugin JS files combined

public string
# getCachePath( string $extra = '' )

Get the path to the cache directory

Get the path to the cache directory

Parameters

$extra
Extra path to append to the path

Returns

string
Path without trailing slash
protected string
# getCacheUrl( string $extra = '' )

Get the URL to the cache directory

Get the URL to the cache directory

Parameters

$extra
Extra path to append to the path

Returns

string
Path without trailing slash
protected boolean
# isCacheDirWritable( )

Is the cache directory writable?

Is the cache directory writable?

Returns

boolean
protected string
# getFormCssFilename( integer $formId )

Get the filename of the individual custom CSS file for the given form ID

Get the filename of the individual custom CSS file for the given form ID

Parameters

$formId

Returns

string
protected string
# getCustomCssFilename( )

Get the filename of the combined custom CSS file

Get the filename of the combined custom CSS file

Returns

string
protected string
# getCombinedCssFilename( )

Get the filename of the combined CSS file

Get the filename of the combined CSS file

Returns

string
protected string
# getCustomJsFilename( )

Get the filename of the custom JS file

Get the filename of the custom JS file

Returns

string
protected string
# getCombinedJsFilename( )

Get the filename of the combined JS file

Get the filename of the combined JS file

Returns

string
protected
# updateActiveFeatureCache( array $configs )

Update the active feature cache for the given form configs

Update the active feature cache for the given form configs

Parameters

$configs
public
# rebuildScriptCache( )

Rebuild the feature cache and custom CSS files

Rebuild the feature cache and custom CSS files

public
# activate( )

On plugin activation generate the combined script files

On plugin activation generate the combined script files

protected string
# minifyCss( string $css )

Minify the given CSS

Minify the given CSS

Parameters

$css

Returns

string
protected
# setPermissions( string $file )

Set the permissions of the generated file

Set the permissions of the generated file

Parameters

$file
Properties summary
protected Quform_Options $options
#
protected Quform_Themes $themes
#
protected Quform_Form_Factory $factory
#
protected Quform_Repository $repository
#
protected Quform_Session $session
#
API documentation generated by ApiGen