cvs: pear /HTML_Template_Xipe/Xipe XMLConfig.php /HTML_Template_Xipe/Xipe/Filter Internal.php /HTML_Template_Xipe/Xipe/docs Xipe.sxw

From: Date: Fri, 10 Jan 2003 18:13:43 +0000
Subject: cvs: pear /HTML_Template_Xipe/Xipe XMLConfig.php /HTML_Template_Xipe/Xipe/Filter Internal.php /HTML_Template_Xipe/Xipe/docs Xipe.sxw
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-8171@lists.php.net to get a copy of this message
cain Fri Jan 10 13:13:43 2003 EDT Modified files: /pear/HTML_Template_Xipe/Xipe XMLConfig.php /pear/HTML_Template_Xipe/Xipe/docs Xipe.sxw /pear/HTML_Template_Xipe/Xipe/Filter Internal.php Log: - i changed my mind, the XML-Root-Tag is 'HTML_Template_Xipe' to be consistent with the package name (may be other PEAR-packages can be configured via XML one day too) Index: pear/HTML_Template_Xipe/Xipe/XMLConfig.php diff -u pear/HTML_Template_Xipe/Xipe/XMLConfig.php:1.7 pear/HTML_Template_Xipe/Xipe/XMLConfig.php:1.8 --- pear/HTML_Template_Xipe/Xipe/XMLConfig.php:1.7 Fri Jan 10 08:23:34 2003 +++ pear/HTML_Template_Xipe/Xipe/XMLConfig.php Fri Jan 10 13:13:42 2003 @@ -15,7 +15,7 @@ // +----------------------------------------------------------------------+ // | Authors: Wolfram Kriesing <wolfram@kriesing.de> | // +----------------------------------------------------------------------+ -// $Id: XMLConfig.php,v 1.7 2003/01/10 13:23:34 cain Exp $ +// $Id: XMLConfig.php,v 1.8 2003/01/10 18:13:42 cain Exp $ // require_once 'HTML/Template/Xipe/Main.php'; @@ -135,7 +135,7 @@ // add the filters set in the xml config files // // TODO check for prefilter defines in xml config - if( $id = $config->getIdByPath('template-xipe/prefilter') ) // are any preFilter given? + if( $id = $config->getIdByPath('html_template_xipe/prefilter') ) // are any preFilter given? { $this->_applyFiltersFromXMLConfig( $config , $id , true ); } @@ -143,7 +143,7 @@ // // apply xml given options to this class, do this after applying the filters // - if( $id = $config->getIdByPath('template-xipe/options') ) // are any options given? + if( $id = $config->getIdByPath('html_template_xipe/options') ) // are any options given? { $delimiter = $config->getElementByPath('delimiter',$id); if( $delimiter )// set new delimiters? @@ -317,7 +317,7 @@ require_once('HTML/Template/Xipe/Filter/Basic.php'); // do only include if we really get here, should save some time $fileContent = HTML_Template_Xipe_Filter_Basic::removeHtmlComments($fileContent); - if( preg_match( '/<template-xipe>.*<\/template-xipe>/Uis' , $fileContent , $configString ) ) + if( preg_match( '/<html_template_xipe>.*<\/html_template_xipe>/Uis' , $fileContent , $configString ) ) { return $configString[0]; } Index: pear/HTML_Template_Xipe/Xipe/docs/Xipe.sxw Index: pear/HTML_Template_Xipe/Xipe/Filter/Internal.php diff -u pear/HTML_Template_Xipe/Xipe/Filter/Internal.php:1.12 pear/HTML_Template_Xipe/Xipe/Filter/Internal.php:1.13 --- pear/HTML_Template_Xipe/Xipe/Filter/Internal.php:1.12 Fri Jan 10 08:21:51 2003 +++ pear/HTML_Template_Xipe/Xipe/Filter/Internal.php Fri Jan 10 13:13:43 2003 @@ -15,7 +15,7 @@ // +----------------------------------------------------------------------+ // | Authors: Wolfram Kriesing <wolfram@kriesing.de> | // +----------------------------------------------------------------------+ -// $Id: Internal.php,v 1.12 2003/01/10 13:21:51 cain Exp $ +// $Id: Internal.php,v 1.13 2003/01/10 18:13:43 cain Exp $ require_once 'HTML/Template/Xipe/Options.php'; require_once 'HTML/Template/Xipe/Filter/Basic.php'; @@ -282,7 +282,7 @@ */ function removeXmlConfigString( $input ) { - return preg_replace( '/<Template-Xipe>.*<\/Template-Xipe>/Uis' , '' , $input ); + return preg_replace( '/<html_template_xipe>.*<\/html_template_xipe>/Uis' , '' , $input ); } }

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