CI_Parser Class Reference

List of all members.

Public Member Functions

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

Public Attributes

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


Member Function Documentation

CI_Parser::_match_pair ( string,
variable 
)

Matches a variable pair

private

Parameters:
string 
string 
Returns:
mixed

CI_Parser::_parse_pair ( variable,
data,
string 
)

Parse a tag pair

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

private

Parameters:
string 
array 
string 
Returns:
string

CI_Parser::_parse_single ( key,
val,
string 
)

Parse a single key/value

private

Parameters:
string 
string 
string 
Returns:
string

CI_Parser::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

CI_Parser::set_delimiters ( l = '{',
r = '}' 
)

Set the left/right variable delimiters

public

Parameters:
string 
string 
Returns:
void


Member Data Documentation

CI_Parser::$l_delim = '{'

CI_Parser::$object

CI_Parser::$r_delim = '}'


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

Generated on Sun Nov 16 16:09:16 2008 for CodeIgniter by  doxygen 1.5.7.1