PHP Class MC4WP_Form_Manager

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

Protected Properties

Property Type Description
$listener MC4WP_Form_Listener
$output_manager MC4WP_Form_Output_Manager
$tags MC4WP_Form_Tags

Public Methods

Method 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

Method Description
get_request ( ) : MC4WP_Request

Method Details

__construct() public method

Constructor
public __construct ( )

add_hooks() public method

Hook!
public add_hooks ( )

get_submitted_form() public method

Gets the currently submitted form
public get_submitted_form ( ) : MC4WP_Form | null
return MC4WP_Form | null

get_tags() public method

Return all tags
public get_tags ( ) : array
return array

init_asset_manager() public method

Initialise asset manager
public init_asset_manager ( )

init_form_listener() public method

Initialise the form listener
public init_form_listener ( )

initialize() public method

Initialize
public initialize ( )

output_form() public method

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

register_post_type() public method

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

register_widget() public method

Register our Form widget
public register_widget ( )

Property Details

$listener protected_oe property

protected MC4WP_Form_Listener $listener
return MC4WP_Form_Listener

$output_manager protected_oe property

protected MC4WP_Form_Output_Manager $output_manager
return MC4WP_Form_Output_Manager

$tags protected_oe property

protected MC4WP_Form_Tags $tags
return MC4WP_Form_Tags