My Project
 All Data Structures Namespaces Functions Variables
Public Member Functions | Data Fields
CI_Parser Class Reference

Public Member Functions

 parse ($template, $data, $return=FALSE)
 
 parse_string ($template, $data, $return=FALSE)
 
 _parse ($template, $data, $return=FALSE)
 
 set_delimiters ($l= '{', $r= '}')
 
 _parse_single ($key, $val, $string)
 
 _parse_pair ($variable, $data, $string)
 
 _match_pair ($string, $variable)
 

Data Fields

 $l_delim = '{'
 
 $r_delim = '}'
 
 $object
 

Member Function Documentation

_match_pair (   $string,
  $variable 
)

Matches a variable pair

private

Parameters
string
string
Returns
mixed
_parse (   $template,
  $data,
  $return = FALSE 
)

Parse a template

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

public

Parameters
string
array
bool
Returns
string
_parse_pair (   $variable,
  $data,
  $string 
)

Parse a tag pair

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

private

Parameters
string
array
string
Returns
string
_parse_single (   $key,
  $val,
  $string 
)

Parse a single key/value

private

Parameters
string
string
string
Returns
string
parse (   $template,
  $data,
  $return = FALSE 
)

Parse a template

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

public

Parameters
string
array
bool
Returns
string
parse_string (   $template,
  $data,
  $return = FALSE 
)

Parse a String

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

public

Parameters
string
array
bool
Returns
string
set_delimiters (   $l = '{',
  $r = '}' 
)

Set the left/right variable delimiters

public

Parameters
string
string
Returns
void

The documentation for this class was generated from the following file: