-
Notifications
You must be signed in to change notification settings - Fork 0
CI_Parser
Mathieu Nayrolles edited this page Jan 20, 2016
·
1 revision
Parser Class
- Class name: CI_Parser
- Namespace:
public string $l_delim = '{'
Left delimiter character for pseudo vars
- Visibility: public
public string $r_delim = '}'
Right delimiter character for pseudo vars
- Visibility: public
protected object $CI
Reference to CodeIgniter instance
- Visibility: protected
void CI_Parser::__construct()
Class constructor
- Visibility: public
string CI_Parser::parse($template, $data, $return)
Parse a template
Parses pseudo-variables contained in the specified template view, replacing them with the data in the second param
- Visibility: public
- $template mixed
- $data mixed
- $return mixed
string CI_Parser::parse_string($template, $data, $return)
Parse a String
Parses pseudo-variables contained in the specified string, replacing them with the data in the second param
- Visibility: public
- $template mixed
- $data mixed
- $return mixed
string CI_Parser::_parse($template, $data, $return)
Parse a template
Parses pseudo-variables contained in the specified template, replacing them with the data in the second param
- Visibility: protected
- $template mixed
- $data mixed
- $return mixed
void CI_Parser::set_delimiters($l, $r)
Set the left/right variable delimiters
- Visibility: public
- $l mixed
- $r mixed
string CI_Parser::_parse_single($key, $val, $string)
Parse a single key/value
- Visibility: protected
- $key mixed
- $val mixed
- $string mixed
string CI_Parser::_parse_pair($variable, $data, $string)
Parse a tag pair
Parses tag pairs: {some_tag} string... {/some_tag}
- Visibility: protected
- $variable mixed
- $data mixed
- $string mixed