cvs: pear /HTML_TINX TINX.php

From: Date: Sun, 30 Dec 2001 20:27:59 +0000
Subject: cvs: pear /HTML_TINX TINX.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-1780@lists.php.net to get a copy of this message
sebastian Sun Dec 30 15:27:59 2001 EDT Modified files: /pear/HTML_TINX TINX.php Log: Make function names comply with PEAR Coding Standard. Index: pear/HTML_TINX/TINX.php diff -u pear/HTML_TINX/TINX.php:1.2 pear/HTML_TINX/TINX.php:1.3 --- pear/HTML_TINX/TINX.php:1.2 Sun Dec 30 08:05:33 2001 +++ pear/HTML_TINX/TINX.php Sun Dec 30 15:27:59 2001 @@ -16,14 +16,14 @@ // | Author: Sebastian Bergmann <sb@sebastian-bergmann.de> | // +----------------------------------------------------------------------+ // -// $Id: TINX.php,v 1.2 2001/12/30 13:05:33 sebastian Exp $ +// $Id: TINX.php,v 1.3 2001/12/30 20:27:59 sebastian Exp $ // /** * TINX - This Is Not XSLT * * @author Sebastian Bergmann <sb@sebastian-bergmann.de> -* @version $Revision: 1.2 $ +* @version $Revision: 1.3 $ * @access public */ @@ -83,17 +83,17 @@ */ function HTML_TINX($file = '', $replace_global_variables = false, $execute_processing_instructions = false, $template_variable_delimiters = array('{', '}')) { - $this->set_file($file); + $this->setFile($file); - $this->set_parse_parameters($replace_global_variables, - $execute_processing_instructions - ); + $this->setParseParameters($replace_global_variables, + $execute_processing_instructions + ); - $this->set_template_variable_delimiters($template_variable_delimiters); + $this->setTemplateVariableDelimiters($template_variable_delimiters); } // }}} - // {{{ function set_file($file) + // {{{ function setFile($file) /** * Set/Load template. @@ -102,7 +102,7 @@ * @access public */ - function set_file($file) { + function setFile($file) { if ($file != '' && file_exists($file)) { $this->_template = implode('', @file($file)); } else { @@ -111,7 +111,7 @@ } // }}} - // {{{ function set_template_variable_delimiters($start, $end = '') + // {{{ function setTemplateVariableDelimiters($start, $end = '') /** * Set template variable delimiters. @@ -121,7 +121,7 @@ * @access public */ - function set_template_variable_delimiters($start, $end = '') { + function setTemplateVariableDelimiters($start, $end = '') { if (is_string($start) && is_string($end) && sizeof($end)) { $this->_template_variable_delimiters = array($start, $end); } @@ -132,7 +132,7 @@ } // }}} - // {{{ function set_parse_parameters($replace_global_variables, $execute_processing_instructions) + // {{{ function setParseParameters($replace_global_variables, $execute_processing_instructions) /** * @@ -142,13 +142,13 @@ * @access public */ - function set_parse_parameters($replace_global_variables, $execute_processing_instructions) { + function setParseParameters($replace_global_variables, $execute_processing_instructions) { $this->_replace_global_variables = $replace_global_variables; $this->_execute_processing_instructions = $execute_processing_instructions; } // }}} - // {{{ function set_var($keys, $values) + // {{{ function setVar($keys, $values) /** * Set template variable(s). @@ -158,7 +158,7 @@ * @access public */ - function set_var($keys, $values) { + function setVar($keys, $values) { if (is_array($keys) && is_array($values) && sizeof($keys) == sizeof($values)) { foreach ($keys as $key) { $this->_keys[] = $this->_template_variable_delimiters[0] . @@ -227,7 +227,7 @@ } // Replace {foo} template variables with values - // defined through set_var(). + // defined through setVar(). if (sizeof($this->_keys)) { $parsed_template = str_replace($this->_keys, @@ -260,7 +260,7 @@ } // }}} - // {{{ function pparse() + // {{{ function pParse() /** * Parse and print template. @@ -271,7 +271,7 @@ * @access public */ - function pparse() { + function pParse() { echo $this->parse(); }

« previous php.pear.cvs (#1780) next »