List of all members.
Public Member Functions |
| __construct ($title) |
| __call ($method, $arguments) |
Static Public Member Functions |
static | methodName ($method) |
static | __callStatic ($method, $arguments) |
Static Protected Member Functions |
static | webTitle ($title) |
static | cliTitle ($title) |
static | webHeader ($title) |
static | webFooter () |
static | webForm ($content, $action= 'index.php', $method= 'get') |
static | webFormInputText ($name, $default=null) |
static | webNavbar ($entry, $entries, $action= 'index.php', $extra=NULL) |
static | webLink ($action, $args, $title) |
static | webEntryLink ($entry) |
static | webFieldLink ($entry, $fid) |
static | webRepetitionLink ($entry, $fid) |
static | webOpenTable () |
static | webCloseTable () |
static | webH2 ($text) |
static | cliH2 ($text) |
static | webH3 ($text) |
static | cliH3 ($text) |
static | webBr () |
static | cliBr () |
static | webPre ($text) |
static | webPreOpen () |
static | webPreClose () |
static | cliPre ($text) |
static | webDump ($var) |
static | cliDump ($var) |
static | webHttpHeader ($mime, $filename) |
static | webCsv ($value=NULL) |
static | webCsvTitles ($format) |
static | webCsvRow () |
static | webMergeCsvItems ($items) |
static | webRadio ($name, $value, $caption, $checked=NULL) |
static | webRadios ($name, $data, $checked=NULL) |
Detailed Description
Display helpers for test scripts.
Constructor & Destructor Documentation
CinisisDisplayHelper::__construct |
( |
$ |
title |
) |
|
Member Function Documentation
CinisisDisplayHelper::__call |
( |
$ |
method, |
|
|
$ |
arguments | |
|
) |
| | |
Dispatcher, dynamic version.
- Parameters:
-
| $method | Method name. |
| $arguments | Argument list. |
- Returns:
- Callback result.
static CinisisDisplayHelper::__callStatic |
( |
$ |
method, |
|
|
$ |
arguments | |
|
) |
| | [static] |
Dispatcher, static version.
- Parameters:
-
| $method | Method name. |
| $arguments | Argument list. |
- Returns:
- Callback result.
static CinisisDisplayHelper::cliBr |
( |
|
) |
[static, protected] |
Draws a line break element, CLI version.
static CinisisDisplayHelper::cliDump |
( |
$ |
var |
) |
[static, protected] |
static CinisisDisplayHelper::cliH2 |
( |
$ |
text |
) |
[static, protected] |
Draws a h2 element, CLI version.
- Parameters:
-
static CinisisDisplayHelper::cliH3 |
( |
$ |
text |
) |
[static, protected] |
Draws a h3 element, CLI version.
- Parameters:
-
static CinisisDisplayHelper::cliPre |
( |
$ |
text |
) |
[static, protected] |
Draws a pre format block element.
- Parameters:
-
static CinisisDisplayHelper::cliTitle |
( |
$ |
title |
) |
[static, protected] |
Draws title, CLI version.
- Parameters:
-
static CinisisDisplayHelper::methodName |
( |
$ |
method |
) |
[static] |
Determine internal method names.
- Parameters:
-
- Returns:
- Method name.
static CinisisDisplayHelper::webBr |
( |
|
) |
[static, protected] |
Draws a line break element.
static CinisisDisplayHelper::webCloseTable |
( |
|
) |
[static, protected] |
Draws tags for closing a table.
static CinisisDisplayHelper::webCsv |
( |
$ |
value = NULL |
) |
[static, protected] |
Display a value with CSV format.
- Parameters:
-
static CinisisDisplayHelper::webCsvRow |
( |
|
) |
[static, protected] |
static CinisisDisplayHelper::webCsvTitles |
( |
$ |
format |
) |
[static, protected] |
Display CSV titles.
- Parameters:
-
| $format | ISIS database format. |
static CinisisDisplayHelper::webDump |
( |
$ |
var |
) |
[static, protected] |
static CinisisDisplayHelper::webEntryLink |
( |
$ |
entry |
) |
[static, protected] |
Format an entry link.
- Parameters:
-
- Returns:
- Formatted link.
static CinisisDisplayHelper::webFieldLink |
( |
$ |
entry, |
|
|
$ |
fid | |
|
) |
| | [static, protected] |
Format a link to the field app.
- Parameters:
-
| $entry | Entry number. |
| $fid | Field code. |
- Returns:
- Formatted link.
static CinisisDisplayHelper::webFooter |
( |
|
) |
[static, protected] |
static CinisisDisplayHelper::webForm |
( |
$ |
content, |
|
|
$ |
action = 'index.php' , |
|
|
$ |
method = 'get' | |
|
) |
| | [static, protected] |
Draws a form.
- Parameters:
-
| $content | Form inner content. |
| $action | Form action. |
| $method | Form method. |
static CinisisDisplayHelper::webFormInputText |
( |
$ |
name, |
|
|
$ |
default = null | |
|
) |
| | [static, protected] |
Draws a form text input.
- Parameters:
-
| $name | Input name. |
| $default | Default value. |
- Returns:
- Rendered text input.
static CinisisDisplayHelper::webH2 |
( |
$ |
text |
) |
[static, protected] |
Draws a h2 element.
- Parameters:
-
static CinisisDisplayHelper::webH3 |
( |
$ |
text |
) |
[static, protected] |
Draws a h3 element.
- Parameters:
-
static CinisisDisplayHelper::webHeader |
( |
$ |
title |
) |
[static, protected] |
Draws the page header.
- Parameters:
-
static CinisisDisplayHelper::webHttpHeader |
( |
$ |
mime, |
|
|
$ |
filename | |
|
) |
| | [static, protected] |
Set the response helper.
- Parameters:
-
| $mime | MIME type. |
| $filename | File name. |
static CinisisDisplayHelper::webLink |
( |
$ |
action, |
|
|
$ |
args, |
|
|
$ |
title | |
|
) |
| | [static, protected] |
Format a link.
- Parameters:
-
| $action | Link action. |
| $args | Action arguments. |
| $title | Link title. |
- Returns:
- Formatted link.
static CinisisDisplayHelper::webMergeCsvItems |
( |
$ |
items |
) |
[static, protected] |
Merge items in a CSV roll.
- Parameters:
-
| $items | Array with items to be merged. |
static CinisisDisplayHelper::webNavbar |
( |
$ |
entry, |
|
|
$ |
entries, |
|
|
$ |
action = 'index.php' , |
|
|
$ |
extra = NULL | |
|
) |
| | [static, protected] |
Draws a navigation bar.
- Parameters:
-
| $entry | Current entry. |
| $entries | Total number of entries. |
| $action | Page action. |
| $extra | Extra parameters. |
static CinisisDisplayHelper::webOpenTable |
( |
|
) |
[static, protected] |
Draws tags for opening a table.
static CinisisDisplayHelper::webPre |
( |
$ |
text |
) |
[static, protected] |
Draws a pre format block element.
- Parameters:
-
static CinisisDisplayHelper::webPreClose |
( |
|
) |
[static, protected] |
Draws a pre open element.
static CinisisDisplayHelper::webPreOpen |
( |
|
) |
[static, protected] |
Draws a pre open element.
static CinisisDisplayHelper::webRadio |
( |
$ |
name, |
|
|
$ |
value, |
|
|
$ |
caption, |
|
|
$ |
checked = NULL | |
|
) |
| | [static, protected] |
Renders a radio button.
- Parameters:
-
| $name | Radio name. |
| $value | Radio value. |
| $caption | Radio caption. |
| $checked | Whether the radio is checked. |
- Returns:
- HTML rendered radio button.
static CinisisDisplayHelper::webRadios |
( |
$ |
name, |
|
|
$ |
data, |
|
|
$ |
checked = NULL | |
|
) |
| | [static, protected] |
Draws a combination of radio buttons.
- Parameters:
-
| $name | Radio names. |
| $data | Array with values and captions. |
| $checked | Index of the selected option. |
static CinisisDisplayHelper::webRepetitionLink |
( |
$ |
entry, |
|
|
$ |
fid | |
|
) |
| | [static, protected] |
Format a link to the field app.
- Parameters:
-
| $entry | Entry number. |
| $fid | Field code. |
- Returns:
- Formatted link.
static CinisisDisplayHelper::webTitle |
( |
$ |
title |
) |
[static, protected] |
Draws a page title.
- Parameters:
-
The documentation for this class was generated from the following file:
- classes/helpers/CinisisDisplayHelper.php