PHP Class Mlp_Save_Post_Request_Validator

Author: toscho
Inheritance: implements Mlp_Request_Validator_Interface
Afficher le fichier Open project: inpsyde/multilingual-press

Méthodes publiques

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

Private Methods

Méthode Description
is_real_revision ( integer $post_id ) : boolean Check post status.

Method Details

__construct() public méthode

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

is_valid() public méthode

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