PHP Class CI_Parser, TastyIgniter

Afficher le fichier Open project: tastyigniter/tastyigniter Class Usage Examples

Méthodes publiques

Свойство Type Description
$l_delim string Left delimiter character for pseudo vars
$r_delim string Right delimiter character for pseudo vars

Protected Properties

Свойство Type Description
$CI object Reference to CodeIgniter instance

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

Class constructor
public __construct ( ) : void
Résultat void

_parse() protected méthode

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

_parse_pair() protected méthode

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

_parse_single() protected méthode

Parse a single key/value
protected _parse_single ( $key, $val, $string ) : string
Résultat string

parse() public méthode

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
Résultat string

parse_string() public méthode

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
Résultat string

set_delimiters() public méthode

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

Property Details

$CI protected_oe property

Reference to CodeIgniter instance
protected object $CI
Résultat object

$l_delim public_oe property

Left delimiter character for pseudo vars
public string $l_delim
Résultat string

$r_delim public_oe property

Right delimiter character for pseudo vars
public string $r_delim
Résultat string