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_Name

Quform_Element
Extended by Quform_Element_Field
Extended by Quform_Element_Name implements Quform_Element_Editable
Copyright: Copyright (c) 2009-2022 ThemeCatcher (https://www.themecatcher.net)
Located at Quform/Element/Name.php
Methods summary
public
# setValue( mixed $value )

Set the value

Set the value

Parameters

$value

Overrides

Quform_Element_Field::setValue()
public array
# getValue( )

Get the filtered value

Get the filtered value

Returns

array
The filtered value

Overrides

Quform_Element_Field::getValue()
public string
# getValueHtml( )

Get the value formatted in HTML

Get the value formatted in HTML

Returns

string

Overrides

Quform_Element_Field::getValueHtml()
public string
# getValueText( string $separator = ', ' )

Get the value formatted in plain text

Get the value formatted in plain text

Parameters

$separator
The separator for array types (not used here)

Returns

string

Overrides

Quform_Element_Field::getValueText()
protected boolean
# isValidValue( array $value )

Is the given value valid for this element type

Is the given value valid for this element type

Parameters

$value

Returns

boolean

Overrides

Quform_Element_Field::isValidValue()
public boolean
# hasValue( mixed $value )

Does this element have the given value?

Does this element have the given value?

Parameters

$value

Returns

boolean

Overrides

Quform_Element_Field::hasValue()
public array
# getEmptyValue( )

Returns

array

Overrides

Quform_Element_Field::getEmptyValue()
protected string
# getConvertedValueForStorage( )

Get the value in storage format

Get the value in storage format

Returns

string

Overrides

Quform_Element_Field::getConvertedValueForStorage()
protected array
# convertValueFromStorage( string $value )

Convert given the value from storage format

Convert given the value from storage format

Parameters

$value

Returns

array

Overrides

Quform_Element_Field::convertValueFromStorage()
public boolean
# isRequired( )

Returns

boolean

Overrides

Quform_Element_Field::isRequired()
public boolean
# isEmpty( )

If the value is not an array or is an empty array it's empty

If the value is not an array or is an empty array it's empty

Returns

boolean

Overrides

Quform_Element_Field::isEmpty()
public
# setPart( $name, Quform_Element_Field $element )

Set a part by name

Set a part by name

Parameters

$name
$element
public Quform_Element_Field|null
# getPart( string $name )

Get a part by name

Get a part by name

Parameters

$name
The name of the part

Returns

Quform_Element_Field|null
public boolean
# isValid( )

Is this element valid?

Is this element valid?

Returns

boolean

Overrides

Quform_Element_Field::isValid()
public boolean
# hasError( )

Returns

boolean

Overrides

Quform_Element_Field::hasError()
public array
# getErrorArray( )

Returns

array

Overrides

Quform_Element_Field::getErrorArray()
protected string
# getLabelHtml( array $context = array(), string|boolean $forAttribute = true, boolean $id = false )

Get the HTML for the element label

Get the HTML for the element label

Parameters

$context
$forAttribute
Set the "for" attribute to the element unique ID
$id
Add a unique ID to the label

Returns

string

Overrides

Quform_Element_Field::getLabelHtml()
protected string
# getInputHtml( array $context = array() )

Get the HTML for the element input wrapper

Get the HTML for the element input wrapper

Parameters

$context

Returns

string

Overrides

Quform_Element_Field::getInputHtml()
protected string
# getFieldHtml( array $context = array() )

Get the HTML for the field

Get the HTML for the field

Parameters

$context

Returns

string
public string
# getEditFieldHtml( )

Get the field HTML when editing

Get the field HTML when editing

Returns

string

Implementation of

Quform_Element_Editable::getEditFieldHtml()
protected string
# renderCss( array $context = array() )

Render the CSS for this field

Render the CSS for this field

Parameters

$context

Returns

string

Overrides

Quform_Element_Field::renderCss()
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

Overrides

Quform_Element::prepareContext()
public static array
# getDefaultConfig( string|null $key = null )

Get the default element configuration

Get the default element configuration

Parameters

$key
Get the config by key, if omitted the full config is returned

Returns

array
Methods inherited from Quform_Element_Field
addError(), addFilter(), addValidator(), clearError(), clearErrors(), clearFilters(), clearValidators(), filterValue(), filterValueRecursive(), getAdminLabel(), getBelongsTo(), getCssSelectors(), getDefaultValue(), getDescriptionHtml(), getEditLabelHtml(), getElementClasses(), getError(), getErrorHtml(), getErrors(), getFieldIconsHtml(), getFilter(), getFilters(), getFullyQualifiedName(), getIdentifier(), getInnerClasses(), getInputClasses(), getLabel(), getName(), getSubLabelHtml(), getTooltip(), getUniqueId(), getValidator(), getValidators(), getValueForStorage(), getValueRaw(), hasDefaultValue(), hasFilter(), hasFilters(), hasValidator(), hasValidators(), isLogicRuleMatch(), isLogicValueMatch(), isMultiple(), prepareDynamicValue(), removeFilter(), removeValidator(), render(), reset(), setBelongsTo(), setDefaultValue(), setDynamicDefaultValue(), setError(), setIsMultiple(), setValueFromStorage(), shouldConvertToHidden()
Methods inherited from Quform_Element
__construct(), config(), getCss(), getCssSelector(), getForm(), getId(), getTranslation(), hasNonVisibleAncestor(), isConditionallyHidden(), isHidden(), isVisible(), setConditionallyHidden(), setConfig(), setForm(), setHasNonVisibleAncestor(), setId(), setUniqueId()
Properties summary
public static array $partKeys
# array( 1 => 'prefix', 2 => 'first', 3 => 'middle', 4 => 'last', 5 => 'suffix' )
protected Quform_Element_Field[] $parts
# array()
protected array $value
# array()
Properties inherited from Quform_Element_Field
$belongsTo, $defaultValue, $errors, $filters, $isMultiple, $validators
Properties inherited from Quform_Element
$config, $form, $hasNonVisibleAncestor, $id, $isConditionallyHidden, $uniqueId
API documentation generated by ApiGen