PHP 클래스 MC4WP_Dynamic_Content_Tags

파일 보기 프로젝트 열기: dannyvankooten/mailchimp-for-wordpress 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$context string

보호된 프로퍼티들

프로퍼티 타입 설명
$escape_mode The escape mode for replacement values.
$tags Array of registered dynamic content tags

공개 메소드들

메소드 설명
__construct ( string $context, $tags = [] )
all ( ) : array Return all registered tags
replace ( string $string, string $escape_mode = '' ) : string
replace_in_attributes ( string $string ) : string
replace_in_html ( string $string ) : string
replace_in_url ( string $string ) : string

보호된 메소드들

메소드 설명
escape_value ( $value ) : mixed
escape_value_attributes ( $value ) : string
escape_value_html ( $value ) : string
escape_value_url ( $value ) : string
replace_tag ( $matches ) : string

메소드 상세

__construct() 공개 메소드

public __construct ( string $context, $tags = [] )
$context string

all() 공개 메소드

Return all registered tags
public all ( ) : array
리턴 array

escape_value() 보호된 메소드

protected escape_value ( $value ) : mixed
$value
리턴 mixed

escape_value_attributes() 보호된 메소드

protected escape_value_attributes ( $value ) : string
$value
리턴 string

escape_value_html() 보호된 메소드

protected escape_value_html ( $value ) : string
$value
리턴 string

escape_value_url() 보호된 메소드

protected escape_value_url ( $value ) : string
$value
리턴 string

replace() 공개 메소드

public replace ( string $string, string $escape_mode = '' ) : string
$string string The string containing dynamic content tags.
$escape_mode string Escape mode for the replacement value. Leave empty for no escaping.
리턴 string

replace_in_attributes() 공개 메소드

public replace_in_attributes ( string $string ) : string
$string string
리턴 string

replace_in_html() 공개 메소드

public replace_in_html ( string $string ) : string
$string string
리턴 string

replace_in_url() 공개 메소드

public replace_in_url ( string $string ) : string
$string string
리턴 string

replace_tag() 보호된 메소드

protected replace_tag ( $matches ) : string
$matches
리턴 string

프로퍼티 상세

$context 공개적으로 프로퍼티

public string $context
리턴 string

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

The escape mode for replacement values.
protected $escape_mode

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

Array of registered dynamic content tags
protected $tags