Source for file Helper.php
Documentation is available at Helper.php
* Helper methods for the HTML_Template_PHPLIB tool
* @package HTML_Template_PHPLIB
* @author Christian Weiske <cweiske@php.net>
* @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
* @link http://pear.php.net/package/HTML_Template_PHPLIB
* Returns an array with all lines of the text.
* Extracts it from the file or the text
* @param string $strFile File name
* @param string $strContent Template code
* @return array Array with text lines, without trailing newlines,
* false when both are null
function getLines($strFile = null , $strContent = null )
if ($strContent !== null ) {
} else if ($strFile !== null ) {
$arLines = file($strFile, FILE_IGNORE_NEW_LINES );
}//function getLines($strFile = null, $strContent = null)
* Splits the content into single lines and returns
* Similar to file(), but works directly on the content
* instead of the file name.
* @param string $strContent File content to be split into lines
* @return array Array of line strings without trailing newlines
"\n", str_replace(array ("\r\n", "\r"), "\n", $strContent)
}//function splitLines($strContent)
}//class HTML_Template_PHPLIB_Helper
Documentation generated on Mon, 11 Mar 2019 15:10:14 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|