- Symphony 2.3.5
-
› assets
14 -
› boot
11 -
› content
24 -
› core
23 -
› cryptography
4 -
› email-gateways
3 -
› global
39 -
› interface
6 -
› toolkit
68 - Delegates94
- 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 Apply(
$options)
Generates a XMLElement representation of a <fieldset>
containing
the "With selectedâ¦" menu. This uses the private function __SelectBuildOption()
to build XMLElement
's of options given the $options
array.
Parameters
See Also
static XMLElement Drawer(XMLElement $content, $default_state, $context, $attributes)
$id, $label,
Generates a XMLElement representation of a Symphony drawer widget.
A widget is identified by it's $label
, and it's contents is defined
by the XMLElement
, $content
.
Parameters
static XMLElement Error(XMLElement $element, $message)
Will wrap a <div>
around a desired element to trigger the default
Symphony error styling.
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 Time(
$string, $format, $pubdate)
Generates a XMLElement representation of a <time>
Parameters
static XMLElement wrapFormElementWithError(XMLElement $element, $message)
Will wrap a <div>
around a desired element to trigger the default
Symphony error styling.
Parameters
See Also
Deprecated
Since Symphony 2.3. This function will be removed in a future Symphony release. Use Widget::Error
instead.