cvs: pear /HTML_Template_PHPLIB/HTML/Template/PHPLIB Generator.php Validator.php

From: Date: Wed, 03 Oct 2007 22:10:19 +0000
Subject: cvs: pear /HTML_Template_PHPLIB/HTML/Template/PHPLIB Generator.php Validator.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-48745@lists.php.net to get a copy of this message
cweiske Wed Oct 3 22:10:19 2007 UTC Modified files: /pear/HTML_Template_PHPLIB/HTML/Template/PHPLIB Generator.php Validator.php Log: CS http://cvs.php.net/viewvc.cgi/pear/HTML_Template_PHPLIB/HTML/Template/PHPLIB/Generator.php?r1=1.1&r2=1.2&diff_format=u Index: pear/HTML_Template_PHPLIB/HTML/Template/PHPLIB/Generator.php diff -u pear/HTML_Template_PHPLIB/HTML/Template/PHPLIB/Generator.php:1.1 pear/HTML_Template_PHPLIB/HTML/Template/PHPLIB/Generator.php:1.2 --- pear/HTML_Template_PHPLIB/HTML/Template/PHPLIB/Generator.php:1.1 Wed Oct 3 22:05:33 2007 +++ pear/HTML_Template_PHPLIB/HTML/Template/PHPLIB/Generator.php Wed Oct 3 22:10:19 2007 @@ -16,6 +16,10 @@ /** * Creates the code to use a given template file * + * @param string $strFile Template file + * @param string $strTplName Template reference name + * @param string $strPrefix Prefix to prepend before the code + * * @return string PHP code */ function getCodeBlockDefinition($strFile, $strTplName = null, $strPrefix = '$tpl') @@ -28,8 +32,8 @@ $strTplName = HTML_Template_PHPLIB_Generator::getTemplateNameFromFilename($strFile); } - $nl = "\r\n"; - $code = ''; + $nl = "\r\n"; + $code = ''; $code .= $strPrefix . ' = new HTML_Template_PHPLIB();' . $nl; $code .= HTML_Template_PHPLIB_Generator::getCodeBlock($arBlocks, $strTplName, $strPrefix); $code .= $nl; @@ -78,12 +82,11 @@ * The array values are array with a key "name" and * "sub", an array of nested blocks. * - * @param string $strContent Template code + * @param array $arLines Template code lines * * @return array Array of blocks * * @static - * @protected */ function getBlocks($arLines) { http://cvs.php.net/viewvc.cgi/pear/HTML_Template_PHPLIB/HTML/Template/PHPLIB/Validator.php?r1=1.5&r2=1.6&diff_format=u Index: pear/HTML_Template_PHPLIB/HTML/Template/PHPLIB/Validator.php diff -u pear/HTML_Template_PHPLIB/HTML/Template/PHPLIB/Validator.php:1.5 pear/HTML_Template_PHPLIB/HTML/Template/PHPLIB/Validator.php:1.6 --- pear/HTML_Template_PHPLIB/HTML/Template/PHPLIB/Validator.php:1.5 Wed Oct 3 22:05:33 2007 +++ pear/HTML_Template_PHPLIB/HTML/Template/PHPLIB/Validator.php Wed Oct 3 22:10:19 2007 @@ -28,7 +28,6 @@ * - 'code' (code that caused the error) * false if no file and content is given * - * @public * @static */ function validate($strFile = null, $strContent = null) @@ -55,7 +54,6 @@ * @return array Array of errors/warnings. An error/warning is an array * of several keys: message, line * - * @protected * @static */ function checkBlockDefinitions($arLines)

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