PHP Class MC4WP_Form_Manager

Do not interact with this class directly, use mc4wp_form functions tagged with @access public instead.
Afficher le fichier Open project: dannyvankooten/mailchimp-for-wordpress Class Usage Examples

Protected Properties

Свойство Type Description
$listener MC4WP_Form_Listener
$output_manager MC4WP_Form_Output_Manager
$tags MC4WP_Form_Tags

Méthodes publiques

Méthode Description
__construct ( ) Constructor
add_hooks ( ) Hook!
get_submitted_form ( ) : MC4WP_Form | null Gets the currently submitted form
get_tags ( ) : array Return all tags
init_asset_manager ( ) Initialise asset manager
init_form_listener ( ) Initialise the form listener
initialize ( ) Initialize
output_form ( $form_id, array $config = [], boolean $echo = true ) : string
register_post_type ( ) Register post type "mc4wp-form"
register_widget ( ) Register our Form widget

Private Methods

Méthode Description
get_request ( ) : MC4WP_Request

Method Details

__construct() public méthode

Constructor
public __construct ( )

add_hooks() public méthode

Hook!
public add_hooks ( )

get_submitted_form() public méthode

Gets the currently submitted form
public get_submitted_form ( ) : MC4WP_Form | null
Résultat MC4WP_Form | null

get_tags() public méthode

Return all tags
public get_tags ( ) : array
Résultat array

init_asset_manager() public méthode

Initialise asset manager
public init_asset_manager ( )

init_form_listener() public méthode

Initialise the form listener
public init_form_listener ( )

initialize() public méthode

Initialize
public initialize ( )

output_form() public méthode

public output_form ( $form_id, array $config = [], boolean $echo = true ) : string
$form_id
$config array
$echo boolean
Résultat string

register_post_type() public méthode

Register post type "mc4wp-form"
public register_post_type ( )

register_widget() public méthode

Register our Form widget
public register_widget ( )

Property Details

$listener protected_oe property

protected MC4WP_Form_Listener $listener
Résultat MC4WP_Form_Listener

$output_manager protected_oe property

protected MC4WP_Form_Output_Manager $output_manager
Résultat MC4WP_Form_Output_Manager

$tags protected_oe property

protected MC4WP_Form_Tags $tags
Résultat MC4WP_Form_Tags