Block
Table of Contents
- smarty_block_assocarray() : mixed
- Smarty {assocarray} block plugin Type: block<br> Name: assocarray<br> Purpose: Set up a associative array Version: 1.1 Author: boots
- smarty_block_css() : mixed
- Smarty {css} block plugin
- smarty_block_form() : mixed
- Smarty {form} block plugin
- smarty_block_group() : mixed
- Smarty {group} block plugin
- smarty_block_if_elements() : string
- Smarty {if_elements} block plugin
- smarty_block_page() : mixed
- Smarty {page} block plugin
- smarty_block_paginate() : mixed
- Smarty {paginate} block plugin
- smarty_block_permissions() : string
- Smarty {permissions} block plugin
- smarty_block_pop() : mixed
- Smarty {pop} block plugin
- smarty_block_script() : mixed
- Smarty {script} block plugin
- smarty_block_toggle() : mixed
- Smarty {toggle} block plugin
- smarty_block_pop() : mixed
- Smarty {pop} block plugin
- smarty_block_pop() : mixed
- Smarty {pop} block plugin
- smarty_block_toggle() : mixed
- Smarty {toggle} block plugin
- smarty_block_pop() : mixed
- Smarty {pop} block plugin
- smarty_block_toggle() : mixed
- Smarty {toggle} block plugin
- smarty_block_pop() : mixed
- Smarty {pop} block plugin
- smarty_block_toggle() : mixed
- Smarty {toggle} block plugin
- smarty_block_form() : mixed
- Smarty {form} block plugin
- smarty_block_permissions() : string
- Smarty {permissions} block plugin
Functions
smarty_block_assocarray()
Smarty {assocarray} block plugin Type: block<br> Name: assocarray<br> Purpose: Set up a associative array Version: 1.1 Author: boots
smarty_block_assocarray( $params, $content, Smarty &$smarty, &$repeat) : mixed
Parameters
- $params :
- $content :
- $smarty : Smarty
- $repeat :
-
Purpose: make assignments from within a template with a simple syntax supporting multiple assignments and allowing for simple assignments as well as arrays and keyed arrays. See: http://www.phpinsider.com/smarty-forum/viewtopic.php?t=64 Example: {assocarray} test: "test" test2: 10 test3: "this is a test" test4: ["test1", "test2", "test3"] test5: [ key1: $smarty.const.PATH_RELATIVE key2: "value2" ] test6: [ key1: "value1" key2: [ subkey1: $config.passed_value //$config.passed_value is set to 'value' subkey2: "subvalue2" ] ] {/assocarray}
creates the following smarty assignments: $test [= "test"] $test2 [= 10] $test3 [= "this is a test"] $test4 [= array("test1", "test2", "test3")] $test5 [= array('key1'=>PATH_RELATIVE, 'key2'=>"value2")] $test6 [= array('key1'=>"value1", 'key2'=>array('subkey1'=>"value", 'subkey2'=>"subvalue2"))]
Tags
Return values
mixed —smarty_block_css()
Smarty {css} block plugin
smarty_block_css( $params, $content, Smarty &$smarty, &$repeat) : mixed
Type: block
Name: css
Purpose: Set up a css block
Parameters
Tags
Return values
mixed —smarty_block_form()
Smarty {form} block plugin
smarty_block_form( $params, $content, Smarty &$smarty, &$repeat) : mixed
Type: block
Name: form
Purpose: Set up a form block
Parameters
Tags
Return values
mixed —smarty_block_group()
Smarty {group} block plugin
smarty_block_group( $params, $content, Smarty &$smarty, &$repeat) : mixed
Type: block
Name: group
Purpose: Set up a group block
Parameters
Tags
Return values
mixed —smarty_block_if_elements()
Smarty {if_elements} block plugin
smarty_block_if_elements( $params, $content, Smarty &$smarty, &$repeat) : string
Type: block
Name: if_elements
Purpose: Set up a if elements block
Parameters
Tags
Return values
string —smarty_block_page()
Smarty {page} block plugin
smarty_block_page( $params, $content, Smarty &$smarty, &$repeat) : mixed
Type: block
Name: page
Purpose: Set up a form page (wizard) block
Parameters
Tags
Return values
mixed —smarty_block_paginate()
Smarty {paginate} block plugin
smarty_block_paginate( $params, $content, Smarty &$smarty) : mixed
Type: block
Name: paginate
Purpose: Set up a pagination block
Parameters
Tags
Return values
mixed —smarty_block_permissions()
Smarty {permissions} block plugin
smarty_block_permissions( $params, $content, Smarty &$smarty, &$repeat) : string
Type: block
Name: permissions
Purpose: Set up a permissions block
Parameters
Tags
Return values
string —smarty_block_pop()
Smarty {pop} block plugin
smarty_block_pop(array<string|int, mixed> $params, $content, Smarty &$smarty, &$repeat) : mixed
Type: block
Name: pop
Purpose: Set up a pop block
Parameters
- $params : array<string|int, mixed>
-
based on expJavascript::panel() 'id' to differentiate popups 'width' width of popup, defaults to '300px' 'type' id type of popup, defaults to 'info', also 'error' & 'alert' 'buttons' text string of 2 button names separated by ':' 'title' title of popup 'close' should popup have a close button (x), defaults to true 'trigger' what object to base event trigger on, defaults to 'selfpop' which displays when popup is ready 'on' what 'event' to display popup, defaults to 'load', or 'click' if 'trigger' is set 'onnogo' what url to browse to when the 'no' button is selected 'onyesgo' what url to browse to when the 'yes' button is selected 'fade' seconds duration of popup 'fade' in/out, defaults to false 'modal' should the popup be 'modal', defaults to true 'draggable' should the popup be 'draggable', defaults to false 'fixedcenter' should the popup be centered, defaults to true 'renderto' where to draw the popup, defaults to 'document.body' 'constraintoviewport' should popup be constrained to the viewport, defaults to true 'zindex' depth of popup, defaults to '50'
- $content :
- $smarty : Smarty
- $repeat :
Tags
Return values
mixed —smarty_block_script()
Smarty {script} block plugin
smarty_block_script( $params, $content, Smarty &$smarty, &$repeat) : mixed
Type: block
Name: script
Purpose: Set up a script block
Parameters
Tags
Return values
mixed —smarty_block_toggle()
Smarty {toggle} block plugin
smarty_block_toggle( $params, $content, Smarty &$smarty, &$repeat) : mixed
Type: block
Name: toggle
Purpose: Set up a toggle block
Parameters
Tags
Return values
mixed —smarty_block_pop()
Smarty {pop} block plugin
smarty_block_pop(array<string|int, mixed> $params, $content, Smarty &$smarty, &$repeat) : mixed
Type: block
Name: pop
Purpose: Set up a pop block
Parameters
- $params : array<string|int, mixed>
-
based on expJavascript::panel() 'id' to differentiate popups 'width' width of popup, defaults to '300px' 'type' id type of popup, defaults to 'info', also 'error' & 'alert' 'buttons' text string of 2 button names separated by ':' 'title' title of popup 'close' should popup have a close button (x), defaults to true 'trigger' what object to base event trigger on, defaults to 'selfpop' which displays when popup is ready 'on' what 'event' to display popup, defaults to 'load', or 'click' if 'trigger' is set 'onnogo' what url to browse to when the 'no' button is selected 'onyesgo' what url to browse to when the 'yes' button is selected 'fade' seconds duration of popup 'fade' in/out, defaults to false 'modal' should the popup be 'modal', defaults to true 'draggable' should the popup be 'draggable', defaults to false
- $content :
- $smarty : Smarty
- $repeat :
Tags
Return values
mixed —smarty_block_pop()
Smarty {pop} block plugin
smarty_block_pop(array<string|int, mixed> $params, $content, Smarty &$smarty, &$repeat) : mixed
Type: block
Name: pop
Purpose: Set up a pop block
Parameters
- $params : array<string|int, mixed>
-
based on expJavascript::panel() 'id' to differentiate popups 'width' width of popup, defaults to '300px' 'type' id type of popup, defaults to 'info', also 'error' & 'alert' 'buttons' text string of 2 button names separated by ':' 'title' title of popup 'close' should popup have a close button (x), defaults to true 'trigger' what object to base event trigger on, defaults to 'selfpop' which displays when popup is ready 'on' what 'event' to display popup, defaults to 'load', or 'click' if 'trigger' is set 'onnogo' what url to browse to when the 'no' button is selected 'onyesgo' what url to browse to when the 'yes' button is selected 'fade' seconds duration of popup 'fade' in/out, defaults to false 'modal' should the popup be 'modal', defaults to true 'draggable' should the popup be 'draggable', defaults to false
- $content :
- $smarty : Smarty
- $repeat :
Tags
Return values
mixed —smarty_block_toggle()
Smarty {toggle} block plugin
smarty_block_toggle( $params, $content, Smarty &$smarty, &$repeat) : mixed
Type: block
Name: toggle
Purpose: Set up a toggle block
Parameters
Tags
Return values
mixed —smarty_block_pop()
Smarty {pop} block plugin
smarty_block_pop(array<string|int, mixed> $params, $content, Smarty &$smarty, &$repeat) : mixed
Type: block
Name: pop
Purpose: Set up a pop block
Parameters
- $params : array<string|int, mixed>
-
based on expJavascript::panel() 'id' to differentiate popups 'width' width of popup, defaults to '300px' 'type' id type of popup, defaults to 'info', also 'error' & 'alert' 'buttons' text string of 2 button names separated by ':' 'title' title of popup 'close' should popup have a close button (x), defaults to true 'trigger' what object to base event trigger on, defaults to 'selfpop' which displays when popup is ready 'on' what 'event' to display popup, defaults to 'load', or 'click' if 'trigger' is set 'onnogo' what url to browse to when the 'no' button is selected 'onyesgo' what url to browse to when the 'yes' button is selected 'fade' seconds duration of popup 'fade' in/out, defaults to false 'modal' should the popup be 'modal', defaults to true 'draggable' should the popup be 'draggable', defaults to false
- $content :
- $smarty : Smarty
- $repeat :
Tags
Return values
mixed —smarty_block_toggle()
Smarty {toggle} block plugin
smarty_block_toggle( $params, $content, Smarty &$smarty, &$repeat) : mixed
Type: block
Name: toggle
Purpose: Set up a toggle block
Parameters
Tags
Return values
mixed —smarty_block_pop()
Smarty {pop} block plugin
smarty_block_pop(array<string|int, mixed> $params, $content, Smarty &$smarty, &$repeat) : mixed
Type: block
Name: pop
Purpose: Set up a pop block
Parameters
- $params : array<string|int, mixed>
-
based on expJavascript::panel() 'id' to differentiate popups 'width' width of popup, defaults to '300px' 'type' id type of popup, defaults to 'info', also 'error' & 'alert' 'buttons' text string of 2 button names separated by ':' 'title' title of popup 'close' should popup have a close button (x), defaults to true 'trigger' what object to base event trigger on, defaults to 'selfpop' which displays when popup is ready 'on' what 'event' to display popup, defaults to 'load', or 'click' if 'trigger' is set 'onnogo' what url to browse to when the 'no' button is selected 'onyesgo' what url to browse to when the 'yes' button is selected 'fade' seconds duration of popup 'fade' in/out, defaults to false 'modal' should the popup be 'modal', defaults to true 'draggable' should the popup be 'draggable', defaults to false
- $content :
- $smarty : Smarty
- $repeat :
Tags
Return values
mixed —smarty_block_toggle()
Smarty {toggle} block plugin
smarty_block_toggle( $params, $content, Smarty &$smarty, &$repeat) : mixed
Type: block
Name: toggle
Purpose: Set up a toggle block
Parameters
Tags
Return values
mixed —smarty_block_form()
Smarty {form} block plugin
smarty_block_form( $params, $content, Smarty &$smarty, &$repeat) : mixed
Type: block
Name: form
Purpose: Set up a form block
Parameters
Tags
Return values
mixed —smarty_block_permissions()
Smarty {permissions} block plugin
smarty_block_permissions( $params, $content, Smarty &$smarty, &$repeat) : string
Type: block
Name: permissions
Purpose: Set up a permissions block