Untility methods to add common Auth/Login elements to an authentication form
« More »__vimbadmin_getFormElements(\OSS_Form $formObj, array $validationRules) : void
| category | OSS |
|---|---|
| package | OSS_Smarty |
| subpackage | Functions |
array&$validationRules Array of rules for validate elements
smarty_function_LoginForm(array $params, \Smarty $smarty) : string
| category | OSS |
|---|---|
| package | OSS_Smarty |
| subpackage | Functions |
array
\SmartyA reference to the Smarty template object
stringsmarty_function_OSS_Message(array $params, \Smarty $smarty) : string
| category | OSS |
|---|---|
| package | OSS_Smarty |
| subpackage | Functions |
array
\SmartyA reference to the Smarty template object
stringsmarty_function_addJSValidator(array $params, \Smarty $smarty) : string
the parameters in $params are:
'form' - the form object, must be a Zend_Form or an inherited class of that
| category | OSS |
|---|---|
| package | OSS_Smarty |
| subpackage | Functions |
arrayAn array of the parameters to make up the URL
\SmartyA reference to the Smarty template object
stringsmarty_function_currency(array $params, \Smarty $smarty) : string
parameters: 'value' string, int, float, default 0.00 'currency' string, default '€'
| category | OSS |
|---|---|
| package | OSS_Smarty |
| subpackage | Functions |
array
\SmartyA reference to the Smarty template object
stringsmarty_function_customdate(array $params, \Smarty $smarty) : string
parameters: 'format' string, default 'Y-m-d' 'offset' string, default 'now' 'now' string, default time()
| category | OSS |
|---|---|
| package | OSS_Smarty |
| subpackage | Functions |
array
\SmartyA reference to the Smarty template object
stringsmarty_function_dateDiffDays(array $params, \Smarty $smarty) : string
parameters: 'date1' string, default 'Y-m-d' 'date2' string, default 'Y-m-d'
| category | OSS |
|---|---|
| package | OSS_Smarty |
| subpackage | Functions |
array
\SmartyA reference to the Smarty template object
stringsmarty_function_dynamicContent(array $params, \Smarty $smarty) : string
The URL is made up of parameters as supplied in the $params associative array. 'controller' and 'action' are special parameters which indicate the controller and action to call. Any other parameters are added as additional name / value pairs.
NOTICE: Works with Doctrine1
| category | OSS |
|---|---|
| package | OSS_Smarty |
| subpackage | Functions |
arrayAn array of the parameters to make up the URL
\SmartyA reference to the Smarty template object
stringsmarty_function_genUrl(array $params, \Smarty $smarty) : string
The URL is made up of parameters as supplied in the $params associative array. 'module', 'controller' and 'action' are special parameters which indicate the module, controller and action to call. Any other parameters are added as additional name / value pairs.
Calls OSS_Utils::genUrl()
| category | OSS |
|---|---|
| package | OSS_Smarty |
| subpackage | Functions |
arrayAn array of the parameters to make up the URL
\SmartyA reference to the Smarty object
stringsmarty_function_includeIfExists($params, $smarty) : string
Otherwise, a default file passed by parameter "else" will be included. Example: 1 {includeIfExists file="foo.tpl" assign="foo"}
| category | OSS |
|---|---|
| package | OSS_Smarty |
| subpackage | Functions |
stringsmarty_function_modelOperation(array $params, \Smarty $smarty) : mixed
NOTICE: Works only with Doctrine1
| category | OSS |
|---|---|
| package | OSS_Smarty |
| subpackage | Functions |
array(model, id, method, params)
\SmartyA reference to the Smarty template object
mixedsmarty_function_phpinfo(array $params, \Smarty $smarty) : string
| category | OSS |
|---|---|
| package | OSS_Smarty |
| subpackage | Functions |
arrayAn array of the parameters to make up the URL
\SmartyA reference to the Smarty object
stringsmarty_function_secondsToHMS($params, $smarty) : string
smarty_function_tmplinclude($params, $smarty) : string
smarty_modifier_alnum(string $string) : string
| category | OSS |
|---|---|
| package | OSS_Smarty |
| subpackage | Modifier |
stringStrint to modify
stringsmarty_modifier_debug_print_var($var, $depth, $length) : string
Type: modifier
Name: debug_print_var
Purpose: formats variable contents for display in the console
| link | debug_print_var (Smarty online manual) |
|---|---|
| author | Monte Ohrt |
| category | OSS |
| package | OSS_Smarty |
| subpackage | Modifier |
array|object
integer
integer
stringsmarty_modifier_escape(string $string, \html | \htmlall | \url | \quotes | \hex | \hexentity | \javascript $esc_type, string $char_set) : string
Type: modifier
Name: escape
Purpose: Escape the string according to escapement type
| link | escape (Smarty online manual) |
|---|---|
| author | Monte Ohrt |
| category | OSS |
| package | OSS_Smarty |
| subpackage | Modifier |
string
\html\htmlall\url\quotes\hex\hexentity\javascript
string
stringsmarty_modifier_intlmobile(string $string) : string
| category | OSS |
|---|---|
| package | OSS_Smarty |
| subpackage | Modifier |
stringStrint to modify
stringsmarty_modifier_mobile(string $string) : string
| category | OSS |
|---|---|
| package | OSS_Smarty |
| subpackage | Modifier |
stringStrint to modify
stringsmarty_modifier_ossDate(string $string, string | int $format) : string
| category | OSS |
|---|---|
| package | OSS_Smarty |
| subpackage | Modifier |
stringString to modify
stringint
stringsmarty_modifier_preg_replace(string $string, string $search, string $replace) : string
| category | OSS |
|---|---|
| package | OSS_Smarty |
| subpackage | Modifier |
stringStrint to modify
stringPattern to search
stringReplacement string
stringsmarty_modifier_shorten(string $string, int $length) : string
| category | OSS |
|---|---|
| package | OSS_Smarty |
| subpackage | Modifier |
stringStrint to modify
intWanted max string length
stringsmarty_modifier_sizeof(mixed $input) : int
smarty_modifier_string_format($string, $format) : string
Type: modifier
Name: string_format
Purpose: format strings via sprintf
| link | string_format (Smarty online manual) |
|---|---|
| author | Monte Ohrt |
| category | OSS |
| package | OSS_Smarty |
| subpackage | Modifier |
string
string
stringsmarty_modifier_toInt(string $string) : int
smarty_modifier_toValidId(string $string) : string