- Symphony 2.6.3
-
› assets
14 -
› boot
14 -
› core
23 -
› cryptography
4 -
› data-sources
6 -
› email-gateways
3 -
› events
3 -
› global
61 -
› interface
9 -
› toolkit
60 - Delegates92
- Deprecated26
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 Calendar(
$time)
Generates a XMLElement representation of a Symphony calendar.
Parameters
static XMLElement Checkbox(XMLElement $wrapper, $help)
$name, $value, $description,
Generates a XMLElement representation of a <input type='checkbox'>
. This also
includes the actual label of the Checkbox and any help text if required. Note that
this includes two input fields, one is the hidden 'no' value and the other
is the actual checkbox ('yes' value). This is provided so if the checkbox is
not checked, 'no' is still sent in the form request for this $name
.
Parameters
Returns
The markup for the label and the checkbox.
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>