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.6.1/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 37]

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
  • Access: public

Parameters:

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

[ Top ]

splitLines   [line 63]

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
  • Access: public

Parameters:

string   $strContent   —  File content to be split into lines

[ Top ]


Documentation generated on Tue, 10 Dec 2019 05:16:06 -0500 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.