Overview

Namespaces

  • None
  • PHP
  • XLite
    • Base
    • Controller
      • Admin
        • Base
      • Console
      • Customer
        • Base
    • Core
      • ColumnType
      • Doctrine
      • FileCache
      • HTTP
      • ImageOperator
      • Pack
      • Task
        • Base
      • TranslationDriver
      • Validator
        • Enum
        • Pair
        • String
          • ObjectId
    • DataSet
      • Collection
      • Transport
        • Order
    • Logic
      • Order
        • Modifier
      • Tax
        • Processor
    • Model
      • Base
      • Category
      • Collection
      • Image
        • Category
        • Product
      • ListNode
      • Order
      • OrderItem
      • Payment
        • Base
        • Processor
      • QueryBuilder
        • Base
      • Repo
        • Base
        • Category
        • Image
          • Category
          • Product
        • Order
        • Payment
        • Shipping
      • Shipping
        • Processor
      • WidgetParam
        • ObjectId
    • Module
      • CDev
        • Bestsellers
          • Core
          • Model
            • Repo
          • View
            • FormField
              • Select
            • Pager
        • FeaturedProducts
          • Controller
            • Admin
          • Core
          • Model
            • Repo
          • View
            • Admin
            • Customer
            • Form
            • Pager
        • FileAttachments
          • Controller
            • Admin
          • Model
            • Product
              • Attachment
            • Repo
              • Base
              • Product
                • Attachment
          • View
            • Form
            • Panel
            • Product
              • Details
                • Customer
                  • Page
        • ProductOptions
          • Controller
            • Admin
            • Customer
          • Model
            • Repo
          • View
            • Button
            • Form
              • Item
    • Upgrade
      • Entry
        • Module
    • View
      • Account
      • Address
      • Base
      • Button
        • Addon
      • Checkout
        • Step
      • Console
      • ExternalSDK
      • Form
        • Address
        • Cart
          • Item
          • ShippingEstimator
        • Checkout
        • FileDialog
        • ItemsList
          • Product
        • Login
          • Admin
          • Customer
        • Module
        • Order
          • Modify
        • Product
          • Modify
            • Base
          • Search
            • Admin
            • Customer
        • Profile
        • Profiles
        • Search
          • Product
        • Upgrade
      • FormField
        • Inline
          • Input
            • Checkbox
              • Switcher
            • Text
              • Integer
              • Position
              • Price
              • Product
        • Input
          • Base
          • Checkbox
          • Text
            • Base
        • Label
        • Select
        • Separator
        • Textarea
      • ItemsList
        • Model
          • Product
            • Admin
        • Module
        • Order
          • Admin
        • Product
          • Admin
          • Customer
        • Profile
          • Admin
      • JS
      • LanguagesModify
        • Button
      • Location
        • Node
      • Menu
        • Customer
      • Model
        • Address
        • FileDialog
        • Profile
      • ModulesManager
        • Action
      • Order
        • Details
          • Admin
          • Base
        • Search
        • Statistics
      • OrderList
      • Pager
        • Admin
          • Model
          • Module
          • Order
          • Product
          • Profile
        • Customer
          • Order
          • Product
      • PagerOrig
      • Payment
      • Product
        • Details
          • Admin
          • Customer
            • Page
      • ProductClass
      • RequestHandler
      • Sort
      • StickyPanel
        • Product
          • Admin
      • Tabs
      • Taxes
      • TopMenu
        • Node
      • Upgrade
        • SelectCoreVersion
        • Step
          • Completed
          • Prepare
          • ReadyToInstall

Classes

  • AFormField
  • Label
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

Class AFormField

Abstract form field

XLite\Base\SuperClass
Extended by XLite\Base\Singleton
Extended by XLite\Base
Extended by XLite\Core\Handler
Extended by XLite\View\AView
Extended by XLite\View\FormField\AFormField

Direct known subclasses

XLite\View\FormField\Input\AInput, XLite\View\FormField\Label\ALabel, XLite\View\FormField\Select\ASelect, XLite\View\FormField\Separator\ASeparator, XLite\View\FormField\Textarea\ATextarea

Indirect known subclasses

XLite\Module\CDev\Bestsellers\View\FormField\Select\Menu, XLite\Module\CDev\FeaturedProducts\View\Admin\FeaturedProductsLook, XLite\View\FormField\Input\Text\Base\Numeric, XLite\View\FormField\Input\Text\Date, XLite\View\FormField\Input\Text\Email, XLite\View\FormField\Input\Text\Float, XLite\View\FormField\Input\Text\Integer, XLite\View\FormField\Input\Text\PastYear, XLite\View\FormField\Input\Text\Phone, XLite\View\FormField\Input\Text\Position, XLite\View\FormField\Input\Text\Price, XLite\View\FormField\Input\Text\Symbol, XLite\View\FormField\Input\Base\String, XLite\View\FormField\Input\Text\URL, XLite\View\FormField\Input\UserProfileId, XLite\View\FormField\Label, XLite\View\FormField\Label\OrderStatus, XLite\View\FormField\Select\AccessLevel, XLite\View\FormField\Select\AccountStatus, XLite\View\FormField\Select\AddressType, XLite\View\FormField\Select\Categories, XLite\View\FormField\Select\Classes, XLite\View\FormField\Select\Country, XLite\View\FormField\Input\Checkbox, XLite\View\FormField\Select\Currency, XLite\View\FormField\Select\DateFormat, XLite\View\FormField\Select\DecimalPart, XLite\View\FormField\Select\Membership, XLite\View\FormField\Select\Memberships, XLite\View\FormField\Select\Multiple, XLite\View\FormField\Select\OrderStatus, XLite\View\FormField\Select\ProductClasses, XLite\View\FormField\Select\Regular, XLite\View\FormField\Select\SMTPSecurity, XLite\View\FormField\Input\Checkbox\ShipAsBill, XLite\View\FormField\Select\State, XLite\View\FormField\Select\SubcategoriesLook, XLite\View\FormField\Select\TestLiveMode, XLite\View\FormField\Select\ThousandDelimiter, XLite\View\FormField\Select\TimeFormat, XLite\View\FormField\Select\TimeZone, XLite\View\FormField\Select\Title, XLite\View\FormField\Select\WeightUnit, XLite\View\FormField\Select\YesNo, XLite\View\FormField\Separator\Regular, XLite\View\FormField\Input\Checkbox\Simple, XLite\View\FormField\Separator\ShippingAddress, XLite\View\FormField\Textarea\Advanced, XLite\View\FormField\Textarea\Simple, XLite\View\FormField\Input\Checkbox\Switcher, XLite\View\FormField\Input\Password, XLite\View\FormField\Input\Text, XLite\View\FormField\Input\Text\Advanced
Abstract
Namespace: XLite\View\FormField
Since: 1.0.0
See: ____class_see____
Located at XLite/View/FormField/AFormField.php
Methods summary
abstract public string
# getFieldType( )

Return field type

Return field type

Returns

string

Since

1.0.0

See

____func_see____
abstract protected string
# getFieldTemplate( )

Return field template

Return field template

Returns

string

Since

1.0.0

See

____func_see____
public string
# getName( )

Return field name

Return field name

Returns

string

Since

1.0.0

See

____func_see____
public mixed
# getValue( )

Return field value

Return field value

Returns

mixed

Since

1.0.0

See

____func_see____
public
# setValue( mixed $value )

Set value

Set value

Parameters

$value
mixed
Value to set

Since

1.0.0

See

____func_see____
public string
# getLabel( )

getLabel

getLabel

Returns

string

Since

1.0.0

See

____func_see____
public string
# getFieldId( )

Return a value for the "id" attribute of the field input tag

Return a value for the "id" attribute of the field input tag

Returns

string

Since

1.0.0

See

____func_see____
public mixed
# validate( )

Validate field value

Validate field value

Returns

mixed

Since

1.0.0

See

____func_see____
public array
# getCSSFiles( )

Get a list of CSS files required to display the widget properly

Get a list of CSS files required to display the widget properly

Returns

array

Since

1.0.0

See

____func_see____
public
# __construct( array $params = array() )

Save current form reference and sections list, and initialize the cache

Save current form reference and sections list, and initialize the cache

Parameters

$params
array
Widget params OPTIONAL

Since

1.0.0

See

____func_see____
public string
# getWrapperClass( )

Register CSS class to use for wrapper block (SPAN) of input field. It is usable to make unique changes of the field.

Register CSS class to use for wrapper block (SPAN) of input field. It is usable to make unique changes of the field.

Returns

string

Since

1.0.1

See

____func_see____
protected string
# getDefaultTemplate( )

Return widget default template

Return widget default template

Returns

string

Since

1.0.0

See

____func_see____
protected string
# getDir( )

Return name of the folder with templates

Return name of the folder with templates

Returns

string

Since

1.0.0

See

____func_see____
protected boolean
# checkSavedValue( )

checkSavedValue

checkSavedValue

Returns

boolean

Since

1.0.0

See

____func_see____
protected boolean
# getValidityFlag( )

Get validity flag (and run field validation procedire)

Get validity flag (and run field validation procedire)

Returns

boolean

Since

1.0.0

See

____func_see____
protected mixed
# sanitize( )

Sanitize value

Sanitize value

Returns

mixed

Since

1.0.13

See

____func_see____
protected array
# getCommonAttributes( )

getCommonAttributes

getCommonAttributes

Returns

array

Since

1.0.0

See

____func_see____
protected
# setCommonAttributes( array $attrs )

setCommonAttributes

setCommonAttributes

Parameters

$attrs
array
Field attributes to prepare

Since

1.0.0

See

____func_see____
protected array
# assembleClasses( array $classes )

Assemble classes

Assemble classes

Parameters

$classes
array
Classes

Returns

array

Since

1.0.13

See

____func_see____
protected array
# assembleValidationRules( )

Assemble validation rules

Assemble validation rules

Returns

array

Since

1.0.13

See

____func_see____
protected array
# prepareAttributes( array $attrs )

prepareAttributes

prepareAttributes

Parameters

$attrs
array
Field attributes to prepare

Returns

array

Since

1.0.0

See

____func_see____
protected boolean
# isRequired( )

Check if field is required

Check if field is required

Returns

boolean

Since

1.0.0

See

____func_see____
protected array
# getAttributes( )

getAttributes

getAttributes

Returns

array

Since

1.0.0

See

____func_see____
protected string
# getAttributesCode( )

Return HTML representation for widget attributes

Return HTML representation for widget attributes

Returns

string

Since

1.0.0

See

____func_see____
protected string
# getInlineJSCode( )

Some JavaScript code to insert

Some JavaScript code to insert

Returns

string

Since

1.0.0

See

____func_see____
protected string
# getDefaultName( )

getDefaultName

getDefaultName

Returns

string

Since

1.0.0

See

____func_see____
protected string
# getDefaultValue( )

getDefaultValue

getDefaultValue

Returns

string

Since

1.0.0

See

____func_see____
protected string
# getDefaultLabel( )

getDefaultLabel

getDefaultLabel

Returns

string

Since

1.0.0

See

____func_see____
protected array
# getDefaultAttributes( )

Get default attributes

Get default attributes

Returns

array

Since

1.0.0

See

____func_see____
protected boolean
# getDefaultParamFieldOnly( )

Getter for Field-only flag

Getter for Field-only flag

Returns

boolean

Since

1.0.0

See

____func_see____
protected
# defineWidgetParams( )

Define widget params

Define widget params

Since

1.0.0

See

____func_see____
protected boolean
# checkFieldValue( )

Check field value validity

Check field value validity

Returns

boolean

Since

1.0.0

See

____func_see____
protected boolean
# checkFieldValidity( )

Check field validity

Check field validity

Returns

boolean

Since

1.0.0

See

____func_see____
protected string
# getRequiredFieldErrorMessage( )

Get required field error message

Get required field error message

Returns

string

Since

1.0.0

See

____func_see____
protected boolean
# checkFieldAccessability( )

checkFieldAccessability

checkFieldAccessability

Returns

boolean

Since

1.0.0

See

____func_see____
protected mixed
# callFormMethod( string $method, array $args = array() )

callFormMethod

callFormMethod

Parameters

$method
string
Class method to call
$args
array
Call arguments OPTIONAL

Returns

mixed

Since

1.0.0

See

____func_see____
protected boolean
# isVisible( )

Check if widget is visible

Check if widget is visible

Returns

boolean

Since

1.0.0

See

____func_see____
protected string
# getDefaultWrapperClass( )

Get default wrapper class

Get default wrapper class

Returns

string

Since

1.0.13

See

____func_see____
Methods inherited from XLite\View\AView
__call(), __clone(), __constructStatic(), __get(), addSlashes(), addViewListChild(), applyXpathPatches(), buildListItemClass(), checkMode(), checkTarget(), checkVisibility(), closeView(), concat(), defineViewList(), detectCurrentViewZone(), display(), displayCommentedData(), displayInheritedViewListContent(), displayNestedViewListContent(), displayViewListContent(), formatDate(), formatFileSize(), formatPrice(), formatSize(), formatTime(), get(), getAllowedTargets(), getArrayField(), getChildWidget(), getCommonFiles(), getContent(), getCurrencySymbol(), getCurrentLanguage(), getDefaultModes(), getInheritedListName(), getInheritedViewList(), getJSFiles(), getListName(), getMetaTags(), getNamePostedData(), getNameToDelete(), getNamespaces(), getNestedListName(), getNestedViewList(), getObjectField(), getRegisteredMetas(), getRegisteredNamespaces(), getRegisteredResources(), getRequestParamValue(), getResources(), getResourcesSchema(), getResourcesTypeSchema(), getRowClass(), getTail(), getTemplate(), getTemplateFile(), getThemeFiles(), getValidationEngineLanguageFile(), getValidationEngineLanguageResource(), getViewList(), getViewListChildren(), getViewListClass(), getViewListContent(), getViewListContentAsNodes(), getWidget(), getXpathByContent(), inc(), includeCompiledFile(), initView(), insertViewListByPattern(), insertViewListByXpath(), isDeveloperMode(), isDisplayRequired(), isDisplayRequiredForMode(), isEmpty(), isSelected(), isViewListVisible(), postprocessContent(), prepareResource(), rand(), registerMetas(), registerNamespaces(), registerResources(), registerResourcesForCurrentWidget(), removeWidgetFromList(), split(), truncate()
Methods inherited from XLite\Core\Handler
buildFullURL(), buildURL(), buildURLArguments(), buildURLPath(), getParam(), getParamsHash(), getPostedData(), getPrefixPostedData(), getPrefixSelected(), getRequestDataByPrefix(), getSelected(), getWidgetParams(), getWidgetSettings(), getWidgetSettingsFilter(), init(), isExported(), setWidgetParams(), validateAttributes()
Methods inherited from XLite\Base
getComplex(), is(), isComplex(), set(), setComplex(), setProperties()
Methods inherited from XLite\Base\Singleton
getInstance(), resetInstance()
Methods inherited from XLite\Base\SuperClass
doDie(), t()
Constants summary
string PARAM_VALUE 'value'
#

Widget param names

Widget param names

string PARAM_REQUIRED 'required'
#
string PARAM_ATTRIBUTES 'attributes'
#
string PARAM_NAME 'fieldName'
#
string PARAM_ID 'fieldId'
#
string PARAM_LABEL 'label'
#
string PARAM_COMMENT 'comment'
#
string PARAM_HELP 'help'
#
string PARAM_FIELD_ONLY 'fieldOnly'
#
string PARAM_WRAPPER_CLASS 'wrapperClass'
#
string PARAM_IS_ALLOWED_FOR_CUSTOMER 'isAllowedForCustomer'
#
string FIELD_TYPE_LABEL 'label'
#

Available field types

Available field types

string FIELD_TYPE_TEXT 'text'
#
string FIELD_TYPE_PASSWORD 'password'
#
string FIELD_TYPE_SELECT 'select'
#
string FIELD_TYPE_CHECKBOX 'checkbox'
#
string FIELD_TYPE_RADIO 'radio'
#
string FIELD_TYPE_TEXTAREA 'textarea'
#
string FIELD_TYPE_SEPARATOR 'separator'
#
Constants inherited from XLite\View\AView
INSERT_AFTER, INSERT_BEFORE, PARAM_MODES, PARAM_TEMPLATE, REPLACE, RESOURCE_CSS, RESOURCE_JS
Constants inherited from XLite\Core\Handler
PARAM_AJAX_TARGET, PARAM_AJAX_WIDGET, PARAM_DUMP_STARTED, PARAM_IS_EXPORTED, PARAM_SILENT
Properties summary
protected string $name null
#

name

name

Since

1.0.0

See

____var_see____
protected boolean $validityFlag null
#

validityFlag

validityFlag

Since

1.0.0

See

____var_see____
protected boolean $isAllowedForCustomer true
#

Determines if this field is visible for customers or not

Determines if this field is visible for customers or not

Since

1.0.0

See

____var_see____
protected string $errorMessage
#

Error message

Error message

Since

1.0.13

See

____var_see____
Properties inherited from XLite\View\AView
$countDeep, $countLevel, $isCloned, $metas, $namedWidgets, $namespaces, $resources, $tail, $viewLists
Properties inherited from XLite\Core\Handler
$widgetParams
Properties inherited from XLite\Base
$singletons
Properties inherited from XLite\Base\Singleton
$instances
LiteCommerce API documentation generated by ApiGen 2.5.0