1 <?php /* vim: set binary expandtab tabstop=4 shiftwidth=4 textwidth=80:
2 -------------------------------------------------------------------------------
4 -------------------------------------------------------------------------------
5 This file is part of mlib.
7 mlib is free software; you can redistribute it and/or modify it under
8 the terms of the GNU Lesser General Public License as published by the Free
9 Software Foundation; either version 2 of the License, or (at your option)
12 mlib is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14 FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
17 You should have received a copy of the GNU Lesser General Public License; if
18 not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
19 Boston, MA 02111-1307 USA
20 -------------------------------------------------------------------------------
21 Creado: jue jul 29 09:42:56 ART 2004
22 Autor: MartÃn Marrese - m_marrese@argentina.com
23 -------------------------------------------------------------------------------
25 -----------------------------------------------------------------------------*/
28 * Clase dummy / interfaz para los templates de mlib.
29 * Establece los parametros para el contructor y los parametros del metodo
35 * Constructor. Backward compatibility ( < PHP5 ).
37 * @param string $root Root directory where template files are.
38 * @param bool $useIncludePath If it's true, it looks for template files in
40 * @param string $group Group of templates to use (a subdirectory in root).
45 function MLIB_Tpl($root = '.', $useIncludePath = false, $group = '')
47 //Aca no sabia si hacer
48 //$this->__construct($root, $useIncludePath, $group);
49 trigger_error('Not implemented!', E_USER_WARNING);
55 * @param string $root Root directory where template files are.
56 * @param bool $useIncludePath If it's true, it looks for template files in
58 * @param string $group Group of templates to use (a subdirectory in root).
63 function __construct($root = '.', $useIncludePath = false, $group = '')
65 trigger_error('Not implemented!', E_USER_WARNING);
69 * Returns a parsed template.
71 * @param string $name Name of template to parse.
72 * @param mixed $vars Variables to replace in the template.
73 * @param string $val If $vars is a string, the value to replace
75 * @param mixed $group Group to use to parse this template.
76 * null to use the current group.
81 function parse($name, $vars = '', $val = '', $group = null)
83 trigger_error('Not implemented!', E_USER_WARNING);
87 * Returns the template file name based on the blockname
89 * @param string $block BlockName.
94 function getFileName($block)
96 trigger_error('Not implemented!', E_USER_WARNING);
100 * Returns the template file content.
102 * @param string $file Filename.
107 function getFileContent($filename)
109 trigger_error('Not implemented!', E_USER_WARNING);