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_Element

Direct known subclasses

Quform_Element_Container, Quform_Element_Field, Quform_Element_Html, Quform_Element_Submit

Indirect known subclasses

Quform_Element_Captcha, Quform_Element_Checkbox, 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_Text, Quform_Element_Textarea, Quform_Element_Column, Quform_Element_Time, Quform_Element_Date, Quform_Element_Email, Quform_Element_File, Quform_Element_Group, Quform_Element_Hidden, Quform_Element_Honeypot, Quform_Element_Multi
Abstract
Copyright: Copyright (c) 2009-2022 ThemeCatcher (https://www.themecatcher.net)
Located at Quform/Element.php
Methods summary
public
# __construct( integer $id, Quform_Form $form )

Parameters

$id
$form
abstract public string
# render( array $context = array() )

Render the element and return the HTML

Render the element and return the HTML

Parameters

$context

Returns

string
public boolean
# isVisible( )

Should this element be visible in the form?

Should this element be visible in the form?

Returns

boolean
public
# setId( integer $id )

Set the ID of the element

Set the ID of the element

Parameters

$id
public integer
# getId( )

Get the ID of the element

Get the ID of the element

Returns

integer
public
# setForm( Quform_Form $form )

Set the form the element belongs to

Set the form the element belongs to

Parameters

$form
public Quform_Form
# getForm( )

Get the form the element belongs to

Get the form the element belongs to

Returns

Quform_Form
public mixed
# config( string|null $key = null, null|mixed $default = null )

Returns the config value for the given $key

Returns the config value for the given $key

If the value is null, the default will be returned

Parameters

$key
The config key
$default
The default value to return if the value key not exist

Returns

mixed
The config value or $default if not set
public
# setConfig( string|array $key, mixed $value = null )

Set the config value for the given $key or multiple values using an array

Set the config value for the given $key or multiple values using an array

Parameters

$key
Key or array of key/values
$value
Value or null if $key is array

Returns


$this
public string
# getTranslation( string $key, string $default = '' )

Parameters

$key
$default

Returns

string
public string
# getName( )

Get the name of the element

Get the name of the element

Returns

string
public string
# getIdentifier( )

Get the element identifier (e.g. 1_1)

Get the element identifier (e.g. 1_1)

Returns

string
public
# setUniqueId( string $uniqueId )

Parameters

$uniqueId
public string
# getUniqueId( )

Returns

string
public
# setConditionallyHidden( boolean $flag )

Set whether the element is hidden by the conditional logic rules

Set whether the element is hidden by the conditional logic rules

Parameters

$flag
public boolean
# isConditionallyHidden( )

Get whether the element is hidden by the conditional logic rules

Get whether the element is hidden by the conditional logic rules

Returns

boolean
public boolean
# isHidden( )

Get whether the element is hidden or not

Get whether the element is hidden or not

Returns

boolean
public
# setHasNonVisibleAncestor( boolean $flag )

Set whether the element is a child of a non-visible container

Set whether the element is a child of a non-visible container

Parameters

$flag
public boolean
# hasNonVisibleAncestor( )

Get whether the element is a child of a non-visible container

Get whether the element is a child of a non-visible container

Returns

boolean
public string
# getCss( array $context = array() )

Get the CSS for this element

Get the CSS for this element

Parameters

$context

Returns

string
protected string
# renderCss( array $context = array() )

Render the CSS for this element

Render the CSS for this element

Override in sub classes to add element-specific CSS

Parameters

$context

Returns

string
protected array
# getCssSelectors( )

Get the CSS selectors for this element

Get the CSS selectors for this element

Override in sub classes to add element-specific CSS selectors

Returns

array
protected string
# getCssSelector( string $type )

Get the CSS selector for the given style type

Get the CSS selector for the given style type

Parameters

$type

Returns

string
protected array
# prepareContext( array $context = array() )

Inherit settings from this element into the context

Inherit settings from this element into the context

Parameters

$context

Returns

array
Properties summary
protected integer $id

Element ID

Element ID

#
protected Quform_Form $form

The form this element belongs to

The form this element belongs to

#
protected boolean $isConditionallyHidden

Is the element conditionally hidden?

Is the element conditionally hidden?

# false
protected boolean $hasNonVisibleAncestor

Is the element a child of a non-visible container?

Is the element a child of a non-visible container?

# false
protected array $config

Element config storage

Element config storage

# array()
protected string $uniqueId

Element unique ID

Element unique ID

# ''
API documentation generated by ApiGen