kernel
[ class tree: kernel ] [ index: kernel ] [ all elements ]

Procedural File: compiler.set.php

Source Location: /themes/smartyplugins/compiler.set.php



Page Details:

Smarty {set} compiler function plugin

File: compiler.set.php Type: compiler function Name: set Purpose: Set a value to a variable (also arrays). The optional parameter "if" is used to set the value if the test is true. The test can be: 'empty', '!empty', 'is_null', '!is_null', 'isset', '!isset', 'is_void'. The new command 'is_void' test if the variable is empty and != 0, very useful for test $_REQUEST parameters.




Tags:

author:  Davide Muzzarelli <info@dav-muz.net>
version:  1.0
copyright:  Copyright 2006 by Muzzarelli Davide
link:  http://smarty.incutio.com/?page=set
link:  http://www.dav-muz.net/
filesource:  Source Code for this file








smarty_compiler_set [line 29]

void|string smarty_compiler_set( array $params, Smarty_Compiler &$smarty)

Set Compiler Function



Parameters

array   $params   parameters "var": variable. "value": value to assign. "if": assign the value only if this test is true (tests avaiables: 'empty', '!empty', 'is_null', '!is_null', 'isset', '!isset', 'is_void').
Smarty_Compiler   &$smarty   object
[ Top ]



Documentation generated on Wed, 29 Jul 2015 13:56:15 +0000 by phpDocumentor 1.5.0-lsces