PHP 클래스 Carbon_Fields\Container\Comment_Meta_Container

상속: extends Container
파일 보기 프로젝트 열기: htmlburger/carbon-fields

보호된 프로퍼티들

프로퍼티 타입 설명
$comment_id

공개 메소드들

메소드 설명
__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.

메소드 상세

__construct() 공개 메소드

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

attach() 공개 메소드

Add meta box to the comment
public attach ( )

detach() 공개 메소드

Revert the result of attach()
public detach ( )

init() 공개 메소드

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

is_valid_save() 공개 메소드

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

render() 공개 메소드

Output the container markup
public render ( )

save() 공개 메소드

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() 공개 메소드

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

프로퍼티 상세

$comment_id 보호되어 있는 프로퍼티

protected $comment_id