Functions

Get form elements

__vimbadmin_getFormElements(\OSS_Form $formObj, array $validationRules) : void
category OSS
package OSS_Smarty
subpackage Functions

Parameters

$formObj

\OSS_Form

Form to get elements

$validationRules

array

&$validationRules Array of rules for validate elements

Function to generate a login form based on a ZendForm object.

smarty_function_LoginForm(array $params, \Smarty $smarty) : string
category OSS
package OSS_Smarty
subpackage Functions

Parameters

$params

array

$smarty

\Smarty

A reference to the Smarty template object

Returns

string

Function to display OSS_Message for user

smarty_function_OSS_Message(array $params, \Smarty $smarty) : string
category OSS
package OSS_Smarty
subpackage Functions

Parameters

$params

array

$smarty

\Smarty

A reference to the Smarty template object

Returns

string

Function to add the JQuery form validator to a form.

smarty_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

Parameters

$params

array

An array of the parameters to make up the URL

$smarty

\Smarty

A reference to the Smarty template object

Returns

string

Function to generate a currency string from a string, int or float

smarty_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

Parameters

$params

array

$smarty

\Smarty

A reference to the Smarty template object

Returns

string

Function to generate a custom date string using date( 'format', strtotime( 'offset', now ) )

smarty_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

Parameters

$params

array

$smarty

\Smarty

A reference to the Smarty template object

Returns

string

Function to to calculate diffrence between two days

smarty_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

Parameters

$params

array

$smarty

\Smarty

A reference to the Smarty template object

Returns

string

Function to load and display dynamic content from the database.

smarty_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

Parameters

$params

array

An array of the parameters to make up the URL

$smarty

\Smarty

A reference to the Smarty template object

Returns

string

Function to generate a Zend Controller URL from Smarty templates.

smarty_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

Parameters

$params

array

An array of the parameters to make up the URL

$smarty

\Smarty

A reference to the Smarty object

Returns

string

Smarty plugin Purpose: Similar with "include" function, but only include the template file when it exists.

smarty_function_includeIfExists($params, $smarty) : string

Otherwise, a default file passed by parameter "else" will be included. Example: 1 {includeIfExists file="foo.tpl" assign="foo"}

2 {includeIfExists file="foo.tpl" else="default.tpl"}

category OSS
package OSS_Smarty
subpackage Functions

Parameters

$params

$smarty

Returns

string

Function to execute a model method with (optional) parameters

smarty_function_modelOperation(array $params, \Smarty $smarty) : mixed

NOTICE: Works only with Doctrine1

category OSS
package OSS_Smarty
subpackage Functions

Parameters

$params

array

(model, id, method, params)

$smarty

\Smarty

A reference to the Smarty template object

Returns

mixed

Function to execute the PHP native phpinfo() function

smarty_function_phpinfo(array $params, \Smarty $smarty) : string
category OSS
package OSS_Smarty
subpackage Functions

Parameters

$params

array

An array of the parameters to make up the URL

$smarty

\Smarty

A reference to the Smarty object

Returns

string

Function converts given int to time string assuming that hours can be more than 24.

smarty_function_secondsToHMS($params, $smarty) : string
category OSS
package OSS_Smarty
subpackage Functions

Parameters

$params

$smarty

Returns

string

Function icludes template form skin, if file is not existing in skin folder it displays default one.

smarty_function_tmplinclude($params, $smarty) : string
category OSS
package OSS_Smarty
subpackage Functions

Parameters

$params

$smarty

Returns

string

Alnum modifier

smarty_modifier_alnum(string $string) : string
category OSS
package OSS_Smarty
subpackage Modifier

Parameters

$string

string

Strint to modify

Returns

string

Smarty debug_print_var modifier plugin

smarty_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

Parameters

$var

array|object

$depth

integer

$length

integer

Returns

string

Smarty escape modifier plugin

smarty_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

Parameters

$string

string

$esc_type

\html\htmlall\url\quotes\hex\hexentity\javascript

$char_set

string

Returns

string

International mobile number modifier

smarty_modifier_intlmobile(string $string) : string
category OSS
package OSS_Smarty
subpackage Modifier

Parameters

$string

string

Strint to modify

Returns

string

Mobile number modifier

smarty_modifier_mobile(string $string) : string
category OSS
package OSS_Smarty
subpackage Modifier

Parameters

$string

string

Strint to modify

Returns

string

OSS_Date modifier

smarty_modifier_ossDate(string $string, string | int $format) : string
category OSS
package OSS_Smarty
subpackage Modifier

Parameters

$string

string

String to modify

$format

stringint

Returns

string

Replace by regular expresion modifier

smarty_modifier_preg_replace(string $string, string $search, string $replace) : string
category OSS
package OSS_Smarty
subpackage Modifier

Parameters

$string

string

Strint to modify

$search

string

Pattern to search

$replace

string

Replacement string

Returns

string

Shorten modifier

smarty_modifier_shorten(string $string, int $length) : string
category OSS
package OSS_Smarty
subpackage Modifier

Parameters

$string

string

Strint to modify

$length

int

Wanted max string length

Returns

string

Size of modifier Counts all elements in an array, or something in an object.

smarty_modifier_sizeof(mixed $input) : int
category OSS
package OSS_Smarty
subpackage Modifier

Parameters

$input

mixed

Returns

int

Smarty string_format modifier plugin

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

Parameters

$string

string

$format

string

Returns

string

To int modifier Multicasting given string to int

smarty_modifier_toInt(string $string) : int
category OSS
package OSS_Smarty
subpackage Modifier

Parameters

$string

string

Returns

int

To valid id

smarty_modifier_toValidId(string $string) : string
category OSS
package OSS_Smarty
subpackage Modifier

Parameters

$string

string

Returns

string

Classes and interfaces

OSS_Plugin_Observable

An interface to be implemented by classes which can be "observed" - i.e.

« More »

OSS_Plugin_Observer

An interface to be implemented by classes which "observe" - i.e.

« More »

OSS_API_DAViCal

A DAViCal API via direct database manipulation.

« More »

OSS_API_Jabber2d

A Jabber2d API via direct database manipulation.

« More »

OSS_API_RoundCube

A RoundCube API via direct database manipulation.

« More »

OSS_API_SOGo

A SOGo API via direct database manipulation.

« More »

OSS_Acl

« More »

OSS_Array

« More »

OSS_Asterisk_AMI_ConnectionException

« More »

OSS_Asterisk_AMI_Exception

« More »

OSS_Asterisk_AMI_Parser

« More »

OSS_Asterisk_Exception

« More »

OSS_Auth_Doctrine2Adapter

« More »

OSS_Auth_DoctrineAdapter

« More »

OSS_Auth_Password

A class to hash and verify passwords using verious methods

« More »

OSS_Captcha_Image

« More »

OSS_Controller_Action

Controller: Action

« More »

OSS_Controller_AuthRequiredAction

Controller: Action

« More »

OSS_Controller_CliAction

Controller: Action

« More »

OSS_Controller_Router_Cli

« More »

OSS_Countries

« More »

OSS_Crypt_Bcrypt

Bcrypt (Blowfish) hashing tools for password.

« More »

OSS_Crypt_Exception

« More »

OSS_Crypt_GibberishAES

Gibberish AES encryption tools.

« More »

OSS_Crypt_OpenSSL

OpenSSL public/private key generation tools.

« More »

OSS_Csv

« More »

OSS_Curl

« More »

OSS_Date

« More »

OSS_DateTime

« More »

OSS_Debug

« More »

OSS_DiskUtils

« More »

OSS_Doctrine2_EntitySerializer

A Doctrine2 Entity Serializer

« More »

OSS_Doctrine2_Exception

« More »

OSS_Doctrine2_FirebugProfiler

« More »

OSS_Doctrine2_Utils

« More »

OSS_Doctrine2_WithPreferences_IndexLimitException

Exception for adding more than the maximum allowed indexed preferences

« More »

OSS_Doctrine_Exception

« More »

OSS_Doctrine_Record

« More »

OSS_Doctrine_Record_WithPreferences

« More »

OSS_Doctrine_Record_WithPreferencesTable

« More »

OSS_Doctrine_Table

« More »

OSS_Exception

« More »

OSS_Filter_FileSize

« More »

OSS_Filter_FixAddressline

« More »

OSS_Filter_FixCompanyname

« More »

OSS_Filter_FixFirstname

« More »

OSS_Filter_FixLastname

« More »

OSS_Filter_Float

« More »

OSS_Filter_HtmlEntitiesDecode

« More »

OSS_Filter_StripLeadingZero

« More »

OSS_Filter_StripSlashes

« More »

OSS_Form

« More »

OSS_Form_Auth

Untility methods to add common Auth/Login elements to an authentication form

« More »

OSS_Form_Captcha

Untility methods to add common Auth/Login elements to an authentication form

« More »

OSS_Form_Element_DatabaseDropdown

Form element text field with database dropdown

« More »

OSS_Form_Element_DateForm

Form element Date form

« More »

OSS_Form_User

Utility methods to add user elements to forms

« More »

OSS_GeoIP

Geo IP class.

« More »

OSS_Html

« More »

OSS_Invoice

Invoice class.

« More »

OSS_License

A class for creating and verifying software licenses.

« More »

OSS_License_Abstract

A base class for creating and verifying software licenses.

« More »

OSS_License_Exception

« More »

OSS_License_ExpiredException

« More »

OSS_License_MD5

A class for creating and verifying software licenses.

« More »

OSS_Log

« More »

OSS_Mail

« More »

OSS_Message

OSS: Message

« More »

OSS_Message_Block

OSS_Message block type class for displaying messages for users.

« More »

OSS_Message_Pop_Up

OSS_Message pop up type class for displaying messages for users.

« More »

OSS_Net_Exception

« More »

OSS_Net_IPv4

Utility methods for IPv4 addresses

« More »

OSS_PHPUnit_Extensions_SeleniumTestCase

« More »

OSS_PaymentProcessor_BaseProcessor

« More »

OSS_PaymentProcessor_Exception

« More »

OSS_PaymentProcessor_Realex

« More »

OSS_PaymentProcessor_Realex_Exception

« More »

OSS_PaymentProcessor_Realex_Hash

« More »

OSS_Pdf

« More »

OSS_Pdf_PdfLatex

« More »

OSS_Pdf_PdfLatex_Exception

« More »

OSS_Phone

« More »

OSS_Resource_AsteriskMI

« More »

OSS_Resource_Auth

« More »

OSS_Resource_Clickatell

« More »

OSS_Resource_Doctrine

« More »

OSS_Resource_Doctrine2

« More »

OSS_Resource_Doctrine2cache

« More »

OSS_Resource_Freshbooks

« More »

OSS_Resource_License

« More »

OSS_Resource_Logger

« More »

OSS_Resource_Mailer

« More »

OSS_Resource_Moduleconfig

« More »

OSS_Resource_Namespace

« More »

OSS_Resource_News

« More »

OSS_Resource_Paygate

« More »

OSS_Resource_Smarty

« More »

OSS_Resource_StatsD

« More »

OSS_Resource_View

« More »

OSS_Resource_Zfdebug

« More »

OSS_Service_Clickatell_Abstract

« More »

OSS_Service_Clickatell_Exception

« More »

OSS_Service_Clickatell_Http

« More »

OSS_Service_Freshbooks

« More »

OSS_StatsD

« More »

OSS_String

Class for string actions

« More »

OSS_Utils

« More »

OSS_Validate_Exception

« More »

OSS_Validate_OSSDateTimeValidate

« More »

OSS_Validate_OSSDateValidate

« More »

OSS_Validate_OSSDoctrine2Uniqueness

« More »

OSS_Validate_OSSDoctrineUniqueness

« More »

OSS_Validate_OSSFloat

« More »

OSS_Validate_OSSIdenticalField

« More »

OSS_Validate_OSSIrishTaxNumber

« More »

OSS_Validate_OSSMACAddress

« More »

OSS_Validate_OSSMobileNumber

« More »

OSS_Validate_OSSNotRegex

« More »

OSS_Validate_OSSNumericBetween

« More »

OSS_Validate_OSSPSN

« More »

OSS_Validate_OSSPassword

« More »

OSS_Validate_OSSRequiredIf

Validates with special condition.

« More »

OSS_Validate_OSSTimeValidate

« More »

OSS_Validate_OSSUrlValidate

« More »

OSS_View_Helper_DatabaseDropdown

Helper to render database dropdown form element

« More »

OSS_View_Helper_DateForm

Helper to render Date form element

« More »

OSS_View_Smarty

« More »

OSS_Yubico

« More »

OSS_ZFDebug_Controller_Plugin_Debug_Plugin_Doctrine

« More »