From: Martín Marrese Date: Thu, 29 Jul 2004 15:45:58 +0000 (+0000) Subject: Modificaciones al diseño de MLIB_Tpl. X-Git-Tag: svn_import~24 X-Git-Url: https://git.llucax.com/mecon/meconlib.git/commitdiff_plain/7cf842a030ae53c788c301b5eeeeadacb46a938d?ds=sidebyside Modificaciones al diseño de MLIB_Tpl. Se sacaron ambos constructores (como es una clase dummy / interfaz no se instancia). Se quito el atributo grupo del metodo parse porque no todos los templates que hereden de MLIB_Tpl deben tener obligatoriamente grupos. --- diff --git a/lib/MLIB/Tpl.php b/lib/MLIB/Tpl.php index 853d43a..e1f82c6 100644 --- a/lib/MLIB/Tpl.php +++ b/lib/MLIB/Tpl.php @@ -31,40 +31,6 @@ $Id$ */ class MLIB_Tpl { - /** - * Constructor. Backward compatibility ( < PHP5 ). - * - * @param string $root Root directory where template files are. - * @param bool $useIncludePath If it's true, it looks for template files in - * PHP's include_path. - * @param string $group Group of templates to use (a subdirectory in root). - * - * @access public - * @return void - */ - function MLIB_Tpl($root = '.', $useIncludePath = false, $group = '') - { - //Aca no sabia si hacer - //$this->__construct($root, $useIncludePath, $group); - trigger_error('Not implemented!', E_USER_WARNING); - } - - /** - * Constructor. (PHP5) - * - * @param string $root Root directory where template files are. - * @param bool $useIncludePath If it's true, it looks for template files in - * PHP's include_path. - * @param string $group Group of templates to use (a subdirectory in root). - * - * @access public - * @return void - */ - function __construct($root = '.', $useIncludePath = false, $group = '') - { - trigger_error('Not implemented!', E_USER_WARNING); - } - /** * Returns a parsed template. * @@ -72,13 +38,11 @@ class MLIB_Tpl { * @param mixed $vars Variables to replace in the template. * @param string $val If $vars is a string, the value to replace * for $vars. - * @param mixed $group Group to use to parse this template. - * null to use the current group. * * @access public * @return mixed */ - function parse($name, $vars = '', $val = '', $group = null) + function parse($name, $vars = '', $val = '') { trigger_error('Not implemented!', E_USER_WARNING); }