◆ __construct()
__construct |
( |
|
$caption, |
|
|
|
$delimeter = ' ' , |
|
|
|
$name = '' |
|
) |
| |
constructor
- Parameters
-
string | $caption | Caption for the group. |
string | $delimeter | HTML to separate the elements |
string | $name | |
◆ addElement()
Add an element to the group
- Parameters
-
◆ getDelimeter()
getDelimeter |
( |
|
$encode = false | ) |
|
Get the delimiter of this group
- Parameters
-
bool | $encode | To sanitizer the text? |
- Returns
- string The delimiter
◆ getElements()
& getElements |
( |
|
$recurse = false | ) |
|
◆ getOrientation()
getOrientation() return the expected tray orientation
The value will be assigned a default value if not previously set.
The default logic considers the presence of an html br tag in _delimeter as implying ORIENTATION_VERTICAL for bc
- Returns
- string either \XoopsFormElementTray::ORIENTATION_HORIZONTAL or \XoopsFormElementTray::ORIENTATION_VERTICAL\
◆ getRequired()
get an array of "required" form elements
- Returns
- array array of
XoopsFormElement
s
◆ isContainer()
Is this element a container of other elements?
- Returns
- bool true
Reimplemented from XoopsFormElement.
◆ isRequired()
Find out if there are required elements.
- Returns
- bool
Reimplemented from XoopsFormElement.
◆ render()
◆ setOrientation()
setOrientation |
( |
|
$direction | ) |
|
setOrientation() communicate to renderer the expected tray orientation \XoopsFormElementTray::ORIENTATION_HORIZONTAL for across \XoopsFormElementTray::ORIENTATION_VERTICAL for up and down
If not set explicitly, a default value will be assigned on getOrientation()
- Parameters
-
string | $direction | ORIENTATION constant |
◆ $_required
◆ $orientation
◆ ORIENTATION_HORIZONTAL
const ORIENTATION_HORIZONTAL = 'horizontal' |
◆ ORIENTATION_VERTICAL
const ORIENTATION_VERTICAL = 'vertical' |
The documentation for this class was generated from the following file: