PHP 클래스 CI_Parser, TastyIgniter

저자: EllisLab Dev Team
파일 보기 프로젝트 열기: tastyigniter/tastyigniter 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$l_delim string Left delimiter character for pseudo vars
$r_delim string Right delimiter character for pseudo vars

보호된 프로퍼티들

프로퍼티 타입 설명
$CI object Reference to CodeIgniter instance

공개 메소드들

메소드 설명
__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

보호된 메소드들

메소드 설명
_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

메소드 상세

__construct() 공개 메소드

Class constructor
public __construct ( ) : void
리턴 void

_parse() 보호된 메소드

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

_parse_pair() 보호된 메소드

Parses tag pairs: {some_tag} string... {/some_tag}
protected _parse_pair ( $variable, $data, $string ) : string
리턴 string

_parse_single() 보호된 메소드

Parse a single key/value
protected _parse_single ( $key, $val, $string ) : string
리턴 string

parse() 공개 메소드

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
리턴 string

parse_string() 공개 메소드

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
리턴 string

set_delimiters() 공개 메소드

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

프로퍼티 상세

$CI 보호되어 있는 프로퍼티

Reference to CodeIgniter instance
protected object $CI
리턴 object

$l_delim 공개적으로 프로퍼티

Left delimiter character for pseudo vars
public string $l_delim
리턴 string

$r_delim 공개적으로 프로퍼티

Right delimiter character for pseudo vars
public string $r_delim
리턴 string