Update Smarty und RedBean
Smarty: 3.1.30 - Redbean: 5.0.0
This commit is contained in:
parent
eb0835ff74
commit
0795a87ecd
193 changed files with 22035 additions and 14455 deletions
|
@ -31,7 +31,7 @@
|
|||
require_once(dirname(__FILE__) . '/Smarty.class.php');
|
||||
|
||||
/**
|
||||
* Smarty Backward Compatability Wrapper Class
|
||||
* Smarty Backward Compatibility Wrapper Class
|
||||
*
|
||||
* @package Smarty
|
||||
*/
|
||||
|
@ -44,16 +44,20 @@ class SmartyBC extends Smarty
|
|||
*/
|
||||
public $_version = self::SMARTY_VERSION;
|
||||
|
||||
/**
|
||||
* This is an array of directories where trusted php scripts reside.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
public $trusted_dir = array();
|
||||
|
||||
/**
|
||||
* Initialize new SmartyBC object
|
||||
*
|
||||
* @param array $options options to set during initialization, e.g. array( 'forceCompile' => false )
|
||||
*/
|
||||
public function __construct(array $options = array())
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct($options);
|
||||
// register {php} tag
|
||||
$this->registerPlugin('block', 'php', 'smarty_php_tag');
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -103,7 +107,7 @@ class SmartyBC extends Smarty
|
|||
}
|
||||
|
||||
/**
|
||||
* Unregisters custom function
|
||||
* Unregister custom function
|
||||
*
|
||||
* @param string $function name of template function
|
||||
*/
|
||||
|
@ -115,16 +119,17 @@ class SmartyBC extends Smarty
|
|||
/**
|
||||
* Registers object to be used in templates
|
||||
*
|
||||
* @param string $object name of template object
|
||||
* @param object $object_impl the referenced PHP object to register
|
||||
* @param array $allowed list of allowed methods (empty = all)
|
||||
* @param boolean $smarty_args smarty argument format, else traditional
|
||||
* @param string $object name of template object
|
||||
* @param object $object_impl the referenced PHP object to register
|
||||
* @param array $allowed list of allowed methods (empty = all)
|
||||
* @param boolean $smarty_args smarty argument format, else traditional
|
||||
* @param array $block_methods list of methods that are block format
|
||||
*
|
||||
* @throws SmartyException
|
||||
* @internal param array $block_functs list of methods that are block format
|
||||
*/
|
||||
public function register_object($object, $object_impl, $allowed = array(), $smarty_args = true, $block_methods = array())
|
||||
public function register_object($object, $object_impl, $allowed = array(), $smarty_args = true,
|
||||
$block_methods = array())
|
||||
{
|
||||
settype($allowed, 'array');
|
||||
settype($smarty_args, 'boolean');
|
||||
|
@ -132,7 +137,7 @@ class SmartyBC extends Smarty
|
|||
}
|
||||
|
||||
/**
|
||||
* Unregisters object
|
||||
* Unregister object
|
||||
*
|
||||
* @param string $object name of template object
|
||||
*/
|
||||
|
@ -155,7 +160,7 @@ class SmartyBC extends Smarty
|
|||
}
|
||||
|
||||
/**
|
||||
* Unregisters block function
|
||||
* Unregister block function
|
||||
*
|
||||
* @param string $block name of template function
|
||||
*/
|
||||
|
@ -177,7 +182,7 @@ class SmartyBC extends Smarty
|
|||
}
|
||||
|
||||
/**
|
||||
* Unregisters compiler function
|
||||
* Unregister compiler function
|
||||
*
|
||||
* @param string $function name of template function
|
||||
*/
|
||||
|
@ -198,7 +203,7 @@ class SmartyBC extends Smarty
|
|||
}
|
||||
|
||||
/**
|
||||
* Unregisters modifier
|
||||
* Unregister modifier
|
||||
*
|
||||
* @param string $modifier name of template modifier
|
||||
*/
|
||||
|
@ -219,7 +224,7 @@ class SmartyBC extends Smarty
|
|||
}
|
||||
|
||||
/**
|
||||
* Unregisters a resource
|
||||
* Unregister a resource
|
||||
*
|
||||
* @param string $type name of resource
|
||||
*/
|
||||
|
@ -240,7 +245,7 @@ class SmartyBC extends Smarty
|
|||
}
|
||||
|
||||
/**
|
||||
* Unregisters a prefilter function
|
||||
* Unregister a prefilter function
|
||||
*
|
||||
* @param callable $function
|
||||
*/
|
||||
|
@ -261,7 +266,7 @@ class SmartyBC extends Smarty
|
|||
}
|
||||
|
||||
/**
|
||||
* Unregisters a postfilter function
|
||||
* Unregister a postfilter function
|
||||
*
|
||||
* @param callable $function
|
||||
*/
|
||||
|
@ -282,7 +287,7 @@ class SmartyBC extends Smarty
|
|||
}
|
||||
|
||||
/**
|
||||
* Unregisters an outputfilter function
|
||||
* Unregister an outputfilter function
|
||||
*
|
||||
* @param callable $function
|
||||
*/
|
||||
|
@ -448,20 +453,3 @@ class SmartyBC extends Smarty
|
|||
trigger_error("Smarty error: $error_msg", $error_type);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Smarty {php}{/php} block function
|
||||
*
|
||||
* @param array $params parameter list
|
||||
* @param string $content contents of the block
|
||||
* @param object $template template object
|
||||
* @param boolean &$repeat repeat flag
|
||||
*
|
||||
* @return string content re-formatted
|
||||
*/
|
||||
function smarty_php_tag($params, $content, $template, &$repeat)
|
||||
{
|
||||
eval($content);
|
||||
|
||||
return '';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue