PHP Class Mlp_Language_Updater

Created by Mlp_Language_Manager_Controller. update_languages() is registered as callback for the action "admin_post_mlp_update_languages"
Author: Inpsyde GmbH, MarketPress, toscho
Mostra file Open project: inpsyde/multilingual-press

Public Methods

Method Description
__construct ( Mlp_Browsable $pagination_data, Mlp_Array_Diff $array_diff, Inpsyde\MultilingualPress\API\Languages $languages, Inpsyde\MultilingualPress\Common\Nonce\Nonce $nonce ) Constructor.
update_languages ( ) : void Combine the work of all other methods.

Private Methods

Method Description
get_existing_items ( ) : array Fetch and prepare existing items for the current page from database.
get_url ( integer $amount ) : string Get URL for the redirect.
update_changed_items ( array $diff ) : integer Store changes in database.
validate_request ( ) : array Check if current request is allowed and complete.

Method Details

__construct() public method

Constructor.
public __construct ( Mlp_Browsable $pagination_data, Mlp_Array_Diff $array_diff, Inpsyde\MultilingualPress\API\Languages $languages, Inpsyde\MultilingualPress\Common\Nonce\Nonce $nonce )
$pagination_data Mlp_Browsable
$array_diff Mlp_Array_Diff
$languages Inpsyde\MultilingualPress\API\Languages
$nonce Inpsyde\MultilingualPress\Common\Nonce\Nonce Nonce object.

update_languages() public method

Combine the work of all other methods.
public update_languages ( ) : void
return void