PHP Class Mlp_Save_Post_Request_Validator

Author: toscho
Inheritance: implements Mlp_Request_Validator_Interface
ファイルを表示 Open project: inpsyde/multilingual-press

Public Methods

Method Description
__construct ( Inpsyde\MultilingualPress\Common\Nonce\Nonce $nonce ) Constructor.
is_valid ( integer $context = NULL ) : boolean Is this a valid request?

Private Methods

Method Description
is_real_revision ( integer $post_id ) : boolean Check post status.

Method Details

__construct() public method

Constructor.
public __construct ( Inpsyde\MultilingualPress\Common\Nonce\Nonce $nonce )
$nonce Inpsyde\MultilingualPress\Common\Nonce\Nonce Nonce object.

is_valid() public method

Is this a valid request?
public is_valid ( integer $context = NULL ) : boolean
$context integer Post id
return boolean