PHP Class Carbon_Fields\Container\Comment_Meta_Container

Inheritance: extends Container
Afficher le fichier Open project: htmlburger/carbon-fields

Protected Properties

Свойство Type Description
$comment_id

Méthodes publiques

Méthode 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 méthode

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

attach() public méthode

Add meta box to the comment
public attach ( )

detach() public méthode

Revert the result of attach()
public detach ( )

init() public méthode

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

is_valid_save() public méthode

Checks whether the current request is valid
public is_valid_save ( ) : boolean
Résultat boolean

render() public méthode

Output the container markup
public render ( )

save() public méthode

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 méthode

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

Property Details

$comment_id protected_oe property

protected $comment_id