PHP Class Carbon_Fields\Container\Comment_Meta_Container

Inheritance: extends Container
Show file Open project: htmlburger/carbon-fields

Protected Properties

Property Type Description
$comment_id

Public Methods

Method Description
__construct ( string $title ) Create a new comment meta container
attach ( ) Add meta box to the comment
detach ( ) Revert the result of attach()
init ( ) Perform instance initialization after calling setup()
is_valid_save ( ) : boolean Checks whether the current request is valid
render ( ) Output the container markup
save ( integer $comment_id ) Perform save operation after successful is_valid_save() check.
set_comment_id ( integer $comment_id ) Set the comment ID the container will operate with.

Method Details

__construct() public method

Create a new comment meta container
public __construct ( string $title )
$title string Unique title of the container

attach() public method

Add meta box to the comment
public attach ( )

detach() public method

Revert the result of attach()
public detach ( )

init() public method

Perform instance initialization after calling setup()
public init ( )

is_valid_save() public method

Checks whether the current request is valid
public is_valid_save ( ) : boolean
return boolean

render() public method

Output the container markup
public render ( )

save() public method

The call is propagated to all fields in the container.
public save ( integer $comment_id )
$comment_id integer ID of the comment against which save() is ran

set_comment_id() public method

Set the comment ID the container will operate with.
public set_comment_id ( integer $comment_id )
$comment_id integer

Property Details

$comment_id protected property

protected $comment_id