HTML_Template_PHPLIB
[ class tree: HTML_Template_PHPLIB ] [ index: HTML_Template_PHPLIB ] [ all elements ]

Class: HTML_Template_PHPLIB_Helper

Source Location: /HTML_Template_PHPLIB-1.4.0/HTML/Template/PHPLIB/Helper.php

Class Overview


Helper methods for the HTML_Template_PHPLIB tool


Author(s):

Methods


Inherited Variables

Inherited Methods


Class Details

[line 24]
Helper methods for the HTML_Template_PHPLIB tool


[ Top ]


Method Detail

getLines   [line 39]

array getLines( [string $strFile = null], [string $strContent = null])

Returns an array with all lines of the text.

Extracts it from the file or the text

  • Return: Array with text lines, without trailing newlines, false when both are null

Parameters:

string   $strFile   —  File name
string   $strContent   —  Template code

[ Top ]

splitLines   [line 70]

array splitLines( string $strContent)

Splits the content into single lines and returns the array.

Similar to file(), but works directly on the content instead of the file name.

  • Return: Array of line strings without trailing newlines

Parameters:

string   $strContent   —  File content to be split into lines

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:25:27 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.