PHP Класс MC4WP_Form_Tags

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$form MC4WP_Form
$form_element MC4WP_Form_Element
$tags MC4WP_Dynamic_Content_Tags

Открытые методы

Метод Описание
__construct ( ) Constructor
add_hooks ( )
get ( ) : array
get_cookie ( array $args = [] ) : string Gets data variable from cookie.
get_data ( $args = [] ) : string Gets data value from GET or POST variables.
get_email ( ) : string
get_form_response ( ) : string Returns the form response
get_post_property ( $args = [] ) * Get property of viewed post
get_subscriber_count ( ) : integer Returns the number of subscribers on the selected lists (for the form context)
get_user_property ( $args = [] ) * Get property of currently logged-in user
register ( array $tags ) : array
replace ( string $string, MC4WP_Form $form, MC4WP_Form_Element $element = null ) : string Replaces the registered tags in the given string
replace_in_url ( $string, MC4WP_Form $form ) : string

Описание методов

__construct() публичный Метод

Constructor
public __construct ( )

add_hooks() публичный Метод

public add_hooks ( )

get() публичный Метод

public get ( ) : array
Результат array

get_data() публичный Метод

Gets data value from GET or POST variables.
public get_data ( $args = [] ) : string
$args
Результат string

get_email() публичный Метод

public get_email ( ) : string
Результат string

get_form_response() публичный Метод

Returns the form response
public get_form_response ( ) : string
Результат string

get_post_property() публичный Метод

* Get property of viewed post
public get_post_property ( $args = [] )
$args

get_subscriber_count() публичный Метод

Returns the number of subscribers on the selected lists (for the form context)
public get_subscriber_count ( ) : integer
Результат integer

get_user_property() публичный Метод

* Get property of currently logged-in user
public get_user_property ( $args = [] )
$args

register() публичный Метод

public register ( array $tags ) : array
$tags array
Результат array

replace() публичный Метод

Replaces the registered tags in the given string
public replace ( string $string, MC4WP_Form $form, MC4WP_Form_Element $element = null ) : string
$string string
$form MC4WP_Form
$element MC4WP_Form_Element
Результат string

replace_in_url() публичный Метод

public replace_in_url ( $string, MC4WP_Form $form ) : string
$string
$form MC4WP_Form
Результат string

Описание свойств

$form защищенное свойство

protected MC4WP_Form $form
Результат MC4WP_Form

$form_element защищенное свойство

protected MC4WP_Form_Element $form_element
Результат MC4WP_Form_Element

$tags защищенное свойство

protected MC4WP_Dynamic_Content_Tags $tags
Результат MC4WP_Dynamic_Content_Tags