CinisisDisplayHelper Class Reference

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  ) 

Constructor.

Parameters:
$title Page 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]

Dump value.

Parameters:
$var Variable to dump.
static CinisisDisplayHelper::cliH2 ( text  )  [static, protected]

Draws a h2 element, CLI version.

Parameters:
$text Inner text.
static CinisisDisplayHelper::cliH3 ( text  )  [static, protected]

Draws a h3 element, CLI version.

Parameters:
$text Inner text.
static CinisisDisplayHelper::cliPre ( text  )  [static, protected]

Draws a pre format block element.

Parameters:
$text Inner text.
static CinisisDisplayHelper::cliTitle ( title  )  [static, protected]

Draws title, CLI version.

Parameters:
$title Page title;
static CinisisDisplayHelper::methodName ( method  )  [static]

Determine internal method names.

Parameters:
$method Method name.
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:
$value Value entry.
static CinisisDisplayHelper::webCsvRow (  )  [static, protected]

Display a new CSV row.

static CinisisDisplayHelper::webCsvTitles ( format  )  [static, protected]

Display CSV titles.

Parameters:
$format ISIS database format.
static CinisisDisplayHelper::webDump ( var  )  [static, protected]

Dump value.

Parameters:
$var Variable to dump.
static CinisisDisplayHelper::webEntryLink ( entry  )  [static, protected]

Format an entry link.

Parameters:
$entry Entry number.
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]

Draws the page footer.

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:
$text Inner text.
static CinisisDisplayHelper::webH3 ( text  )  [static, protected]

Draws a h3 element.

Parameters:
$text Inner text.
static CinisisDisplayHelper::webHeader ( title  )  [static, protected]

Draws the page header.

Parameters:
$title Page title;
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:
$text Inner text.
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:
$title Page title;

The documentation for this class was generated from the following file:
 All Classes Functions Variables
Generated on Thu Sep 2 12:20:42 2010 for Cinisis Database Reader by  doxygen 1.6.3