Mlp_Translatable_Post_Data::__construct PHP Method

__construct() public method

public __construct ( $deprecated, array $allowed_post_types, string $link_table, Inpsyde\MultilingualPress\API\ContentRelations $content_relations, Inpsyde\MultilingualPress\Factory\NonceFactory $nonce_factory )
$deprecated
$allowed_post_types array
$link_table string
$content_relations Inpsyde\MultilingualPress\API\ContentRelations
$nonce_factory Inpsyde\MultilingualPress\Factory\NonceFactory Nonce factory object.
    function __construct($deprecated, array $allowed_post_types, $link_table, ContentRelations $content_relations, NonceFactory $nonce_factory)
    {
        $this->allowed_post_types = $allowed_post_types;
        $this->link_table = $link_table;
        $this->content_relations = $content_relations;
        $this->nonce_factory = $nonce_factory;
        if ('POST' === $_SERVER['REQUEST_METHOD']) {
            $this->post_request_data = $_POST;
        }
        $this->source_site_id = get_current_blog_id();
    }