PHP Class CI_Parser, TastyIgniter

Datei anzeigen Open project: tastyigniter/tastyigniter Class Usage Examples

Public Properties

Property Type Description
$l_delim string Left delimiter character for pseudo vars
$r_delim string Right delimiter character for pseudo vars

Protected Properties

Property Type Description
$CI object Reference to CodeIgniter instance

Public Methods

Method Description
__construct ( ) : void Class constructor
parse ( $template, $data, $return = FALSE ) : string Parse a template
parse_string ( $template, $data, $return = FALSE ) : string Parse a String
set_delimiters ( $l = '{', $r = '}' ) : void Set the left/right variable delimiters

Protected Methods

Method Description
_parse ( $template, $data, $return = FALSE ) : string Parse a template
_parse_pair ( $variable, $data, $string ) : string Parse a tag pair
_parse_single ( $key, $val, $string ) : string Parse a single key/value

Method Details

__construct() public method

Class constructor
public __construct ( ) : void
return void

_parse() protected method

Parses pseudo-variables contained in the specified template, replacing them with the data in the second param
protected _parse ( $template, $data, $return = FALSE ) : string
return string

_parse_pair() protected method

Parses tag pairs: {some_tag} string... {/some_tag}
protected _parse_pair ( $variable, $data, $string ) : string
return string

_parse_single() protected method

Parse a single key/value
protected _parse_single ( $key, $val, $string ) : string
return string

parse() public method

Parses pseudo-variables contained in the specified template view, replacing them with the data in the second param
public parse ( $template, $data, $return = FALSE ) : string
return string

parse_string() public method

Parses pseudo-variables contained in the specified string, replacing them with the data in the second param
public parse_string ( $template, $data, $return = FALSE ) : string
return string

set_delimiters() public method

Set the left/right variable delimiters
public set_delimiters ( $l = '{', $r = '}' ) : void
return void

Property Details

$CI protected_oe property

Reference to CodeIgniter instance
protected object $CI
return object

$l_delim public_oe property

Left delimiter character for pseudo vars
public string $l_delim
return string

$r_delim public_oe property

Right delimiter character for pseudo vars
public string $r_delim
return string