From 09e5b39226f945937c987e30856d965e936c8035 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Thu, 12 Oct 2006 05:06:15 +0000 Subject: [PATCH] Template_FS updated --- template_fs.php | 30 ++++++++---------------------- 1 file changed, 8 insertions(+), 22 deletions(-) diff --git a/template_fs.php b/template_fs.php index d860517..92e1c8d 100644 --- a/template_fs.php +++ b/template_fs.php @@ -56,17 +56,6 @@ class Template_FS extends Template */ var $extension = 'tpl'; - /** - * Fields array that is used in this module - * @var array - * @access private - */ - var $fields = array( - 'templatedir' => array(REQ_YES, 'fetch_sourcepath', false), - 'extension' => array(REQ_YES, null, false), - 'pre_parse_hook' => array(REQ_NO, null, false) - ); - // ################################################################### /** * Constructor @@ -87,31 +76,28 @@ class Template_FS extends Template // ################################################################### /** - * Sets an ISSO field + * Sets the template directory * * @access public * - * @param string Field name - * @param mixed Value of the field + * @param string The template directory */ - function set($name, $value) + function setTemplateDir($path) { - $this->registry->do_set($name, $value, 'template_fs'); + $this->templatedir = $this->registry->fetch_sourcepath($path); } // ################################################################### /** - * Gets an ISSO field + * Sets the file extension * * @access public * - * @param string Field name - * - * @return mixed Value of the field + * @param string File extension */ - function get($fieldname) + function setExtension($ext) { - return $this->do_get($fieldname, 'template_fs'); + $this->extension = $ext; } // ################################################################### -- 2.22.5