%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/klubovnaostrava/test2/wp-content/plugins/filebird/includes/Controller/
Upload File :
Create Path :
Current File : /www/klubovnaostrava/test2/wp-content/plugins/filebird/includes/Controller/SettingController.php

<?php

namespace FileBird\Controller;

use FileBird\Classes\Helpers;
use FileBird\Model\SettingModel;
use FileBird\Model\UserSettingModel;

defined( 'ABSPATH' ) || exit;

class SettingController {
    public function setSettings( \WP_REST_Request $request ) {
        $params = Helpers::sanitize_array( $request->get_params() );

        SettingModel::getInstance()->setSettings( $params );
        UserSettingModel::getInstance()->setSettings( $params );

		return rest_ensure_response( true );
    }

    public function setUserSettings( \WP_REST_Request $request ) {
        $params = Helpers::sanitize_array( $request->get_params() );

        UserSettingModel::getInstance()->setSettings( $params );

		return rest_ensure_response( true );
    }
}

Zerion Mini Shell 1.0