\CI_Parser

Parser Class

Summary

Methods
Properties
Constants
parse()
parse_string()
_parse()
set_delimiters()
_parse_single()
_parse_pair()
_match_pair()
$l_delim
$r_delim
$object
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$l_delim

$l_delim : 

Type

$r_delim

$r_delim : 

Type

$object

$object : 

Type

Methods

parse()

parse(  $template,   $data,   $return = FALSE) : string

Parse a template

Parses pseudo-variables contained in the specified template view, replacing them with the data in the second param

Parameters

$template
$data
$return

Returns

string

parse_string()

parse_string(  $template,   $data,   $return = FALSE) : string

Parse a String

Parses pseudo-variables contained in the specified string, replacing them with the data in the second param

Parameters

$template
$data
$return

Returns

string

_parse()

_parse(  $template,   $data,   $return = FALSE) : string

Parse a template

Parses pseudo-variables contained in the specified template, replacing them with the data in the second param

Parameters

$template
$data
$return

Returns

string

set_delimiters()

set_delimiters(  $l = '{',   $r = '}') : void

Set the left/right variable delimiters

Parameters

$l
$r

_parse_single()

_parse_single(  $key,   $val,   $string) : string

Parse a single key/value

Parameters

$key
$val
$string

Returns

string

_parse_pair()

_parse_pair(  $variable,   $data,   $string) : string

Parse a tag pair

Parses tag pairs: {some_tag} string... {/some_tag}

Parameters

$variable
$data
$string

Returns

string

_match_pair()

_match_pair(  $string,   $variable) : mixed

Matches a variable pair

Parameters

$string
$variable

Returns

mixed