Template-function to call an arbitrary static function of a given Action class
string
callActionStaticFunction
( $params, $engine &$smarty, array $param)
-
array
$param: Associative array with the parameter. Needed are "class" with the class name and "method" as the static method
-
$engine
&$smarty: The engine (typically myMVC_SmartyEngine)
-
$params
Template-function to create an URL
string
createURL
( $params, $engine &$engine, array $param)
-
array
$param: Associative array with the parameter. Needed is "class" with the class name If "var" is specified, the URL will be saved in this variable (using the engine) If "menuitem" is specified and his value is true, the URL will be created as menuitem (see myMVC_BaseAction::isCalledFromMenu())
-
$engine
&$engine: The engine (typically myMVC_SmartyEngine)
-
$params
Template-function to create the URL of the previous used action
string
createURLPrevious
( $params, $engine &$engine, array $param)
-
array
$param: Associative array with the parameter. If "var" is specified, the URL will be saved in this variable (using the engine) If "menuitem" is specified and his value is true, the URL will be created as menuitem (see myMVC_BaseAction::isCalledFromMenu())
-
$engine
&$engine: The engine (typically myMVC_SmartyEngine)
-
$params
Template-function to return the error message of the given form field
string
errorMessage
( $params, $engine &$engine, array $param)
-
array
$param: Associative array with the parameter. Needed is "field" with the field name If "var" is specified, the URL will be saved in this variable (using the engine)
-
$engine
&$engine: The engine (typically myMVC_SmartyEngine)
-
$params
Template-function to return all error messages as numeric array of associative arrays ('field' => <field name>, 'message' => <error message>)
array
errorMessagesAsArray
( $params, $engine &$engine, array $param)
-
array
$param: Associative array with the parameter. If "var" is specified, the URL will be saved in this variable (using the engine)
-
$engine
&$engine: The engine (typically myMVC_SmartyEngine)
-
$params
Template-function to return all error messages as string
string
errorMessagesAsString
( $params, $engine &$engine, array $param)
-
array
$param: Associative array with the parameter. Needed is "format" with a printf-style to describe every line. If "var" is specified, the URL will be saved in this variable (using the engine)
-
$engine
&$engine: The engine (typically myMVC_SmartyEngine)
-
$params
Format a number with the actual locale information
Example: Locale de_DE: 1.234,56 Locale en_US: 1,234.56 Locale it_IT: 1234,56
string
formatNumber
($number $number, $decimals $decimals)
-
$number
$number: The number to be formatted
-
$decimals
$decimals: How many decimals
Template-function to return the CSS of the given action
string
getActionCSS
( $params, $engine &$engine, array $param)
-
array
$param: Associative array with the parameter. Needed is "class" with the class name
-
$engine
&$engine: The engine (typically myMVC_SmartyEngine)
-
$params
Template-function to create menu item
string
getActionMenuItem
( $params, $engine &$smarty, array $param)
-
array
$param: Associative array with the parameter. Needed is "class" with the class name
-
$engine
&$smarty: The engine (typically myMVC_SmartyEngine)
-
$params
Returns the token used to identify the current View
string
getViewToken
()
Redefined in descendants as:
Template-function to return whether the action, who called this view, was called from a menu or directly from another action/view
bool
isCalledFromMenu
( $params, $engine &$engine, array $param)
-
array
$param: Associative array with the parameter. If "var" is specified, the URL will be saved in this variable (using the engine)
-
$engine
&$engine: The engine (typically myMVC_SmartyEngine)
-
$params
Template-function to return whether the form field passed the validation
bool
isFieldValid
( $params, $engine &$engine, array $param)
-
array
$param: Associative array with the parameter. Needed is "field" with the field name If "var" is specified, the URL will be saved in this variable (using the engine)
-
$engine
&$engine: The engine (typically myMVC_SmartyEngine)
-
$params
Render the page and return it as string
string
fetch
()
Returns the template file for the current view
void
getTemplateFile
()
Prepare to render the View
boolean
preRender
()
Render the page and send it to
the browser
void
render
()
Set all the invalid form fields of the previous form as variable to be displayed by the engine
void
setAllInvalidFields
()
Set all form fields of the previous form as variable to be displayed by the engine
void
setAllSubmitFields
()
Set all the valid form fields of the previous form as variable to be displayed by the engine
void
setAllValidFields
()
Save an object (reference) to be used in the template
void
setObject
(string $key, $obj, mixed $value)
-
string
$key: The name of the template object
-
mixed
$value: The object
-
$obj
Use $file as template
void
setTemplate
(string $file)
-
string
$file: The template file
Save a variable to be used in the template
void
setVariable
(string $key, string $value)
-
string
$key: The name of the template variable
-
string
$value: The value
Inherited Methods
Inherited From myMVC_BasePage
myMVC_BasePage::__construct()
myMVC_BasePage::getFromPreviousSubmit()
myMVC_BasePage::getInvalidFromPreviousSubmit()
myMVC_BasePage::getLoggedUser()
myMVC_BasePage::getParameterErrors()
myMVC_BasePage::getParameterFromPreviousPage()
myMVC_BasePage::isParameterFromPreviousSubmitValid()
myMVC_BasePage::saveParameterForNextPage()