Source for file function.formutil_getpassedvalue.php
Documentation is available at function.formutil_getpassedvalue.php
* Zikula Application Framework
* @copyright (c) 2004, Zikula Development Team
* @link http://www.zikula.org
* @version $Id: function.formutil_getpassedvalue.php 24342 2008-06-06 12:03:14Z markwest $
* @license GNU/GPL - http://www.gnu.org/copyleft/gpl.html
* @package Zikula_Template_Plugins
* pnml: same as pnml() but with the added option to assign the result to a smarty variable
* @version $Id: function.formutil_getpassedvalue.php 24342 2008-06-06 12:03:14Z markwest $
* @param assign The smarty variable to assign the retrieved value to
* @param html Wether or not to pnVarPrepHTMLDisplay'ize the ML value
* @param key The key to retrieve from the input vector
* @param default The default value to return if the key is not set
* @param source The input source to retrieve the key from
* @param noprocess If set, no processing is applied to the constant value
if ((!isset ($params['key']) || !$params['key']) &&
(!isset ($params['name']) || !$params['name'])) { // use name as an alias for key for programmer convenience
$smarty->trigger_error('v4b_get_passed_value: attribute key (or name) required');
$assign = isset ($params['assign']) ? $params['assign'] : null;
$key = isset ($params['key']) ? $params['key'] : null;
$default = isset ($params['default']) ? $params['default'] : null;
$html = isset ($params['html']) ? $params['html'] : null;
$source = isset ($params['source']) ? $params['source'] : null;
$noprocess = isset ($params['noprocess']) ? $params['noprocess'] : null;
$key = isset ($params['name']) ? $params['name'] : null;
$smarty->assign ($assign, $val);
|