|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| __construct ($name, $doc_url=null, $compress=false) | |
| setTextareaDimensions ($cols=null, $rows=null) | |
| render ($config, $allowed=true, $render_controls=true) | |
Static Public Member Functions | |
| static | getCSS () |
| static | getJavaScript () |
Protected Member Functions | |
| renderNamespace ($ns, $directives) | |
Protected Attributes | |
| $fields = array() | |
| $docURL | |
| $name | |
| $compress = false | |
Definition at line 6 of file ConfigForm.php.
| __construct | ( | $ | name, |
| $ | doc_url = null, |
||
| $ | compress = false |
||
| ) |
| $name | Form element name for directives to be stuffed into |
| $doc_url | String documentation URL, will have fragment tagged on |
| $compress | Integer max length before compressing a directive name, set to false to turn off |
Definition at line 36 of file ConfigForm.php.

| static getCSS | ( | ) | [static] |
Retrieves styling, in case it is not accessible by webserver
Definition at line 61 of file ConfigForm.php.
| static getJavaScript | ( | ) | [static] |
Retrieves JavaScript, in case it is not accessible by webserver
Definition at line 68 of file ConfigForm.php.
Returns HTML output for a configuration form
| $config | Configuration object of current form state, or an array where [0] has an HTML namespace and [1] is being rendered. |
| $allowed | Optional namespace(s) and directives to restrict form to. |
Definition at line 78 of file ConfigForm.php.

| renderNamespace | ( | $ | ns, |
| $ | directives | ||
| ) | [protected] |
Renders a single namespace
| $ns | String namespace name |
| $directive | Associative array of directives to values |
Definition at line 127 of file ConfigForm.php.


| setTextareaDimensions | ( | $ | cols = null, |
| $ | rows = null |
||
| ) |
Sets default column and row size for textareas in sub-printers
| $cols | Integer columns of textarea, null to use default |
| $rows | Integer rows of textarea, null to use default |
Definition at line 53 of file ConfigForm.php.
$compress = false [protected] |
Whether or not to compress directive names, clipping them off after a certain amount of letters. False to disable or integer letters before clipping.
Definition at line 29 of file ConfigForm.php.
$docURL [protected] |
Documentation URL, can have fragment tagged on end
Definition at line 17 of file ConfigForm.php.
$fields = array() [protected] |
Printers for specific fields
Definition at line 12 of file ConfigForm.php.
$name [protected] |
Name of form element to stuff config in
Definition at line 22 of file ConfigForm.php.