Class Form
Form - Abstract Form
- Xoops\Form\Form implements Xoops\Form\ContainerInterface
Direct known subclasses
PublisherBlockForm, Xoops\Form\BlockForm, Xoops\Form\GroupPermissionForm, Xoops\Form\SimpleForm, Xoops\Form\TableForm, Xoops\Form\ThemeForm, XoopsFormIndirect known subclasses
AvatarsAvatar_userForm, AvatarsAvatarForm, MaintenanceMaintenanceForm, MenusMenus_menuForm, MenusMenus_menusForm, PagePage_contentForm, PagePage_relatedForm, ProfileCategoryForm, ProfileFieldForm, ProfileRegstepForm, ProtectorCenterForm, PublisherCategoryForm, BannersBannerclientForm, PublisherFileForm, PublisherItemForm, SearchSearchForm, SmiliesSmiliesForm, SystemBlockForm, SystemGroupForm, SystemPreferencesForm, SystemUserForm, UserconfigsConfigsForm, UserconfigsModulesForm, BannersBannerForm, UserrankRanksForm, XcaptchaCaptchaForm, XcaptchaImageForm, XcaptchaRecaptchaForm, XcaptchaTextForm, XlanguageLanguageForm, XlanguageTinymceForm, XoopsGroupPermForm, XoopsSimpleForm, XoopsTableForm, CommentsCommentForm, XoopsThemeForm, ImagesCategory_imagemanagerForm, ImagesCategoryForm, ImagesCategoryselectForm, ImagesImage_imagemanagerForm, ImagesImageFormNamespace: Xoops\Form
Package: Xoops\Form
Category: Xoops\Form\Form
Copyright: 2001-2015 XOOPS Project (http://xoops.org)
License: GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
Author: Kazumi Ono onokazu@xoops.org
Author: Taiwen Jiang phppp@users.sourceforge.net
Link: http://xoops.org
Located at oops_lib/Xoops/Form/Form.php
public
|
#
__construct( string $title, string $name, string $action, string $method = 'post', boolean $addtoken = false, string $display = '' )
constructor |
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
|
|
public
string
|
|
public
string
|
|
public
|
#
addElement(
addElement - Add an element to the form |
public
|
|
public
string[]
|
|
public
null|
|
#
getElementByName( string $name )
getElementByName - get a reference to a Xoops\Form\Element by its name |
public
|
#
setElementValue( string $name, string $value )
setElementValue - Sets the "value" attribute of a form element |
public
|
#
setElementValues( array $values )
setElementValues - Sets the "value" attribute of form elements in a batch |
public
string|null
|
#
getElementValue( string $name, boolean $encode = false )
getElementValue - Gets the value attribute of a form element |
public
array
|
#
getElementValues( boolean $encode = false )
getElementValues - gets the value attribute of all form elements |
public
|
|
public
string
|
|
public
|
|
public
array
|
|
abstract public
string
|
|
public
|
|
public
string
|
#
renderValidationJS( boolean $withtags = true )
Renders the Javascript function needed for client-side for validation |
public
|
#
assign(
assign - assign to smarty form template instead of displaying directly |
protected
string
|
$action
"action" attribute for the html form |
|
protected
string
|
$method
"method" attribute for the form. |
|
protected
string
|
$name
"name" attribute of the form |
|
protected
string
|
$title
title for the form |
|
protected
string
|
$display
display class for the form, i.e. horizontal, vertical, inline |
#
''
|
protected
|
$elements
array of Element objects |
#
array()
|
protected
string[]
|
$extra
extra information for the < form> tag |
#
array()
|
protected
string[]
|
$required
required elements |
#
array()
|