Overview

Namespaces

  • None
  • Xmf
    • Database
    • Module
      • Helper
    • Template
  • Xoops
    • Auth
    • Core
      • Cache
      • Database
        • Logging
        • Schema
      • Exception
      • Handler
        • Scheme
      • Kernel
        • Dtype
        • Handlers
        • Model
      • Lists
      • Locale
        • Punic
      • Service
        • Contract
      • Session
      • Text
        • Sanitizer
          • Extensions
      • Theme
        • Plugins
    • Form
    • Html
    • Locale
    • Module
      • Helper
      • Plugin

Classes

  • BlockForm
  • Button
  • ButtonTray
  • Captcha
  • Checkbox
  • ColorPicker
  • DateSelect
  • DateTime
  • DhtmlTextArea
  • Editor
  • Element
  • ElementFactory
  • ElementTray
  • File
  • Form
  • GroupCheckbox
  • GroupFormCheckbox
  • GroupPermissionForm
  • Hidden
  • Label
  • Mail
  • OptionElement
  • Password
  • Radio
  • RadioYesNo
  • Raw
  • Select
  • SelectCountry
  • SelectEditor
  • SelectGroup
  • SelectLanguage
  • SelectLocale
  • SelectMatchOption
  • SelectTheme
  • SelectTimeZone
  • SelectUser
  • SimpleForm
  • Tab
  • TableForm
  • TabTray
  • Text
  • TextArea
  • ThemeForm
  • Token
  • Url

Interfaces

  • ContainerInterface
  • Overview
  • Namespace
  • Class
  • Tree

Class ElementFactory

Factory to build form elements

Namespace: Xoops\Form
Package: Xoops\Form
Category: ElementFactory
Copyright: 2015 XOOPS Project (http://xoops.org)
License: GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
Author: Richard Griffith richard@geekwright.com
Link: http://xoops.org
Located at oops_lib/Xoops/Form/ElementFactory.php
Methods summary
public Xoops\Form\Element
# create( array $specification )

Create the specified Form\Element

Create the specified Form\Element

Parameters

$specification
associative array of attributes and controls defining an Element

Returns

Xoops\Form\Element

Throws

DomainException
protected Xoops\Form\Element
# validateSpec( array & $specification )

Validate the specification, adding container if needed

Validate the specification, adding container if needed

Parameters

$specification
associative array of attributes and controls defining an Element

Returns

Xoops\Form\Element

Throws

DomainException
public
# setContainer( Xoops\Form\ContainerInterface $container )

Set a the container to be applied to new elements

Set a the container to be applied to new elements

Parameters

$container
form or tray to contain generated elements
Constants summary
string CLASS_KEY
# ':class'
string FORM_KEY
# ':form'
Properties summary
protected Xoops\Form\ContainerInterface $container
# null
API documentation generated by ApiGen