Squiz Matrix
4.12.2
|
Public Member Functions | |
Backend_Outputter () | |
setBuffering ($buffer=TRUE) | |
setRedirect ($link, $target='self') | |
addOnLoad ($call) | |
addFormActionGetVar ($name, $value, $persistant=FALSE) | |
getCurrentLocation () | |
setFormAnchor ($anchor) | |
setPageTitle ($title) | |
setHeading ($heading, $icon='') | |
setSubHeading ($heading, $icon='') | |
addMessage ($type, $msg) | |
addCssInclude ($file) | |
addJsInclude ($file) | |
addOnSubmit ($call) | |
addHiddenField ($name, $value='') | |
addScreen ($url, $name) | |
addStaticScreen ($url, $name) | |
addPreloadImg ($file) | |
setCharset ($charset) | |
openRaw () | |
closeRaw () | |
openSection ($heading='', $icon='') | |
closeSection () | |
_openSection ($init_arr) | |
_nbOpenSection ($init_arr) | |
_closeSection () | |
_nbCloseSection () | |
openField ($name, $format='', $note='', $hidden=FALSE, $id_name='') | |
_nbOpenField ($name, $format='', $note='', $hidden=FALSE) | |
closeField () | |
_nbCloseField () | |
filesPath ($file='') | |
paint () | |
getAsString () | |
_paintHeader () | |
_paintSection ($section, $depth=0) | |
_paintFooter () | |
_paintCssInclude ($file) | |
_paintJsInclude ($file) | |
note ($str) | |
sectionNote ($str='') | |
_nbSectionNote ($str) | |
commitButton ($value='', $release_lock=TRUE, $include_section=TRUE) | |
printScreenMenu () | |
printContextSwitcher () | |
printSimpleContextSwitcher () | |
onBackendMessage (&$broadcaster, $event_data=Array()) | |
onCreateLink (&$broadcaster, $event_data=Array()) | |
onDeleteLink (&$broadcaster, $event_data=Array()) | |
onAssetUpdate (&$broadcaster, $event_data=Array()) | |
onAssetTypeUpdate (&$broadcaster, $event_data=Array()) | |
onAssetStatusUpdate (&$broadcaster, $event_data=Array()) | |
getCurrentSectionNumber () | |
Definition at line 40 of file backend_outputter.inc.
_closeSection | ( | ) |
_nbCloseField | ( | ) |
Closes a field without buffering
Definition at line 850 of file backend_outputter.inc.
_nbCloseSection | ( | ) |
Closes a section without buffering
Definition at line 698 of file backend_outputter.inc.
_nbOpenField | ( | $name, | |
$format = '' , |
|||
$note = '' , |
|||
$hidden = FALSE |
|||
) |
Print a field without buffering (nb == non-buffering)
string | $name | label of the field |
string | $format | format 'new_line' | 'blank' | 'commit' | '' |
string | $note | a note to place with the field |
boolean | $hidden | Whether the field should be hidden |
Definition at line 773 of file backend_outputter.inc.
_nbOpenSection | ( | $init_arr | ) |
Opens a section without buffering
array | $init_arr | some initialising data |
Definition at line 629 of file backend_outputter.inc.
_nbSectionNote | ( | $str | ) |
Outputs a section note in the proper css format
NOTE: a section can only have ONE note
string | $str | The note contents |
Definition at line 1530 of file backend_outputter.inc.
_openSection | ( | $init_arr | ) |
Opens a section, with the passed initialise array
array | $init_arr | some initialising data |
Definition at line 587 of file backend_outputter.inc.
_paintCssInclude | ( | $file | ) |
Outputs a stylesheet include line for the passed file
string | $file | The URL of the file to include |
Definition at line 1455 of file backend_outputter.inc.
_paintFooter | ( | ) |
Paint the footer of the page
Definition at line 1435 of file backend_outputter.inc.
_paintHeader | ( | ) |
Paint the header of the page
Definition at line 950 of file backend_outputter.inc.
_paintJsInclude | ( | $file | ) |
Outputs a javascript include line for the passed file
string | $file | The URL to the file |
Definition at line 1472 of file backend_outputter.inc.
_paintSection | ( | $section, | |
$depth = 0 |
|||
) |
Paint the passed section onto the page
array | $section | an array with some infor about the section |
int | $depth | an indicator to the depth we are currently at used for nested sections |
Definition at line 1280 of file backend_outputter.inc.
addCssInclude | ( | $file | ) |
Add a stylesheet file to the page
string | $file | URL of the CSS file |
Definition at line 366 of file backend_outputter.inc.
addFormActionGetVar | ( | $name, | |
$value, | |||
$persistant = FALSE |
|||
) |
Allows you to add get vars to the action section of the form
string | $name | the name of the var |
string | $value | the value of the var |
boolean | $persistant | try and keep this var available at all times (even on redirects)? |
Definition at line 247 of file backend_outputter.inc.
addHiddenField | ( | $name, | |
$value = '' |
|||
) |
Add a hidden field to the output
string | $name | the name of the field |
string | $value | the value to store in the field |
Definition at line 414 of file backend_outputter.inc.
addJsInclude | ( | $file | ) |
Add a javascript file to the page
string | $file | URL of the JS file |
Definition at line 382 of file backend_outputter.inc.
addMessage | ( | $type, | |
$msg | |||
) |
Add a message to be displayed to the user
string | $type | Type of message |
string | $msg | Message contents |
Definition at line 347 of file backend_outputter.inc.
addOnLoad | ( | $call | ) |
Add an onLoad call, something JS that needs to be executed right after the page finishes loading
string | $call | JS code to execute |
Definition at line 230 of file backend_outputter.inc.
addOnSubmit | ( | $call | ) |
Add an onSubmit call, some JS that needs to be executed before the form submits
string | $call | The JS code |
Definition at line 398 of file backend_outputter.inc.
addPreloadImg | ( | $file | ) |
Adds a preload image
string | $file | The URL of the image |
Definition at line 469 of file backend_outputter.inc.
addScreen | ( | $url, | |
$name | |||
) |
Adds a screen options to the drop down
string | $url | the url to go to when this screen is selected |
string | $name | the name to display in the drop down |
Definition at line 430 of file backend_outputter.inc.
addStaticScreen | ( | $url, | |
$name | |||
) |
Adds a static screen for editing
string | $url | The URL of the static screen |
string | $name | The friendly name of the static screen |
Definition at line 450 of file backend_outputter.inc.
closeField | ( | ) |
closeRaw | ( | ) |
Closes a raw output section
Definition at line 519 of file backend_outputter.inc.
closeSection | ( | ) |
commitButton | ( | $value = '' , |
|
$release_lock = TRUE , |
|||
$include_section = TRUE |
|||
) |
Creates a standardised commit button
string | $value | The caption of the commit button, defaults to the Commit Button Text property or 'Commit' if not found |
boolean | $release_lock | whether the lock should be released |
boolean | $include_section | include the section |
Definition at line 1554 of file backend_outputter.inc.
filesPath | ( | $file = '' | ) |
Returns the path to the web dir in lib
string | $file | if supplied is concatenated onto the path before returning |
Definition at line 883 of file backend_outputter.inc.
getAsString | ( | ) |
Returns the outputters painted contents as a string
Definition at line 932 of file backend_outputter.inc.
getCurrentLocation | ( | ) |
Returns the current action, which realistically is going to be the way to get to the current location
Definition at line 269 of file backend_outputter.inc.
getCurrentSectionNumber | ( | ) |
Get the section number we are up to
Definition at line 1806 of file backend_outputter.inc.
note | ( | $str | ) |
Outputs a note in the proper css format
string | $str | The note contents |
Definition at line 1489 of file backend_outputter.inc.
onAssetStatusUpdate | ( | & | $broadcaster, |
$event_data = Array() |
|||
) |
Event handler to refresh the asset map if an asset's status has changed
object | &$broadcaster | the asset that triggered the event |
array | $event_data | the vars that get submitted by the broadcaster |
Definition at line 1787 of file backend_outputter.inc.
onAssetTypeUpdate | ( | & | $broadcaster, |
$event_data = Array() |
|||
) |
Event handler to refresh the asset map if an asset has been morphed to a new type
object | &$broadcaster | the asset that triggered the event |
array | $event_data | the vars that get submitted by the broadcaster |
Definition at line 1765 of file backend_outputter.inc.
onAssetUpdate | ( | & | $broadcaster, |
$event_data = Array() |
|||
) |
Event handler to refresh the asset map if the short name of an asset has changed
object | &$broadcaster | the asset that triggered the event |
array | $event_data | the vars that get submitted by the broadcaster |
Definition at line 1745 of file backend_outputter.inc.
onBackendMessage | ( | & | $broadcaster, |
$event_data = Array() |
|||
) |
Event handler to add a message to the flash soeone broadcasts it
object | &$broadcaster | the asset that triggered the event |
array | $event_data | the vars that get submitted by the broadcaster |
Definition at line 1688 of file backend_outputter.inc.
onCreateLink | ( | & | $broadcaster, |
$event_data = Array() |
|||
) |
Event handler to refresh the asset map if a new link has been created
object | &$broadcaster | the asset that triggered the event |
array | $event_data | the vars that get submitted by the broadcaster |
Definition at line 1704 of file backend_outputter.inc.
onDeleteLink | ( | & | $broadcaster, |
$event_data = Array() |
|||
) |
Event handler to refresh the asset map if a link has been deleted
object | &$broadcaster | the asset that triggered the event |
array | $event_data | the vars that get submitted by the broadcaster |
Definition at line 1725 of file backend_outputter.inc.
openField | ( | $name, | |
$format = '' , |
|||
$note = '' , |
|||
$hidden = FALSE , |
|||
$id_name = '' |
|||
) |
Opens a field inside a section
string | $name | label of the field |
string | $format | format 'new_line' | 'blank' | 'commit' | '' |
string | $note | a note to place with the field |
string | $hidden | whether to hide the field inially or not |
string | $id_name | the id name to give the element that we hide (so it can be found easily) |
Definition at line 724 of file backend_outputter.inc.
openRaw | ( | ) |
Opens a section of the page for raw output
Definition at line 497 of file backend_outputter.inc.
openSection | ( | $heading = '' , |
|
$icon = '' |
|||
) |
Opens a section
string | $heading | The heading name |
string | $icon | The heading icon |
Definition at line 540 of file backend_outputter.inc.
paint | ( | ) |
Paint the cached backend interface
Definition at line 899 of file backend_outputter.inc.
printContextSwitcher | ( | ) |
Prints the interface for switching between contexts
The context switcher will only be painted if there is at least one alternate context set up (it does not need to be valid for initial selection). If there is only one context (ie. the default), nothing will be printed.
Definition at line 1628 of file backend_outputter.inc.
printScreenMenu | ( | ) |
Prints the screen selection drop down list
Definition at line 1594 of file backend_outputter.inc.
printSimpleContextSwitcher | ( | ) |
Print only the drop-down part of the context switcher
It is expected that the "simple" version of the context switcher will be used within Simple Edit interfaces, in a similar way to the Screen Menu.
Definition at line 1653 of file backend_outputter.inc.
sectionNote | ( | $str = '' | ) |
Outputs a section note in the proper css format
NOTE: a section can only have ONE note
string | $str | The note contents |
Definition at line 1506 of file backend_outputter.inc.
setBuffering | ( | $buffer = TRUE | ) |
Sets whether the backend output will buffer its output
boolean | $buffer | if TRUE buffering will be turned on (on by default) |
Definition at line 187 of file backend_outputter.inc.
setCharset | ( | $charset | ) |
Set the character set for the page
string | $charset | the character set to use |
Definition at line 484 of file backend_outputter.inc.
setFormAnchor | ( | $anchor | ) |
Set the anchor that the page will submit to
string | $anchor | Anchor name |
Definition at line 284 of file backend_outputter.inc.
setHeading | ( | $heading, | |
$icon = '' |
|||
) |
Set the heading for page
string | $heading | the heading to display |
string | $icon | the icon img tag (if any) |
Definition at line 314 of file backend_outputter.inc.
setPageTitle | ( | $title | ) |
Set the page title
$title | the page title |
Definition at line 298 of file backend_outputter.inc.
setRedirect | ( | $link, | |
$target = 'self' |
|||
) |
Set the redirect for the page
string | $link | URL to redirect to |
string | $target | Frame to redirect in |
Definition at line 204 of file backend_outputter.inc.
setSubHeading | ( | $heading, | |
$icon = '' |
|||
) |
Set the sub heading for page
string | $heading | the heading to display |
string | $icon | the icon img tag (if any) |
Definition at line 331 of file backend_outputter.inc.