- Symphony 2.2.2
-
› assets
11 -
› boot
9 -
› core
22 -
› email-gateways
3 -
› toolkit
67 -
› Unknown
33 - Delegates87
- Deprecated30
Versions
- 2.7.9
- 2.7.8
- 2.7.7
- 2.7.6
- 2.7.5
- 2.7.3
- 2.7.2
- 2.7.10
- 2.7.1
- 2.7.0
- 2.6.9
- 2.6.8
- 2.6.7
- 2.6.6
- 2.6.5
- 2.6.4
- 2.6.3
- 2.6.2
- 2.6.11
- 2.6.10
- 2.6.1
- 2.6.0
- 2.5.3
- 2.5.2
- 2.5.1
- 2.5.0
- 2.4
- 2.3.6
- 2.3.5
- 2.3.4
- 2.3.3
- 2.3.2
- 2.3.1
- 2.3
- 2.2.5
- 2.2.4
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2
Options
public class Widget
class.widget.php #10Widget is a utility class that offers a number miscellaneous of functions to help generate common HTML Forms elements as XMLElement objects for inclusion in Symphony backend pages.
Methods
static XMLElement Anchor(
$value, $href, $title, $class, $id, $attributes)
Generates a XMLElement representation of <a>
Parameters
static XMLElement Form(
$action, $method, $class, $id, $attributes)
Generates a XMLElement representation of <form>
Parameters
static XMLElement Input(
$name, $value, $type, $attributes)
Generates a XMLElement representation of <input>
Parameters
static XMLElement Label(XMLElement $child, $class, $id, $attributes)
$name,
Generates a XMLElement representation of <label>
Parameters
static XMLElement Select(
$name, $options, $attributes)
Generates a XMLElement representation of a <select>
. This uses
the private function __SelectBuildOption()
to build XMLElements of
options given the $options
array.
Parameters
See Also
static XMLElement Table(XMLElement $header, XMLElement $footer, XMLElement $body, $class, $id, $attributes)
Generates a XMLElement representation of <table>
This is a simple way to create generic Symphony table wrapper
Parameters
static XMLElement TableBody(
$rows, $class, $id, $attributes)
Generates a XMLElement representation of <tbody>
from an array
containing <tr>
XMLElements
Parameters
See Also
static XMLElement TableData(
$value, $class, $id, $colspan, $attributes)
Generates a XMLElement representation of a <td>
.
Parameters
static XMLElement TableHead(
$columns)
Generates a XMLElement representation of <thead>
from an array
containing column names and any other attributes.
Parameters
static XMLElement TableRow(
$cells, $class, $id, $rowspan, $attributes)
Generates a XMLElement representation of <tr>
from an array
containing column names and any other attributes.
Parameters
static XMLElement Textarea(
$name, $rows, $cols, $value, $attributes)
Generates a XMLElement representation of <textarea>
Parameters
static XMLElement wrapFormElementWithError(XMLElement $element, $message)
Will wrap a <div>
around a desired element to trigger the default
Symphony error styling.