YetiForceCompany/YetiForceCRM

View on GitHub
modules/Settings/WebserviceApps/actions/Delete.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php

/**
 * Delete Application.
 *
 * @package Settings.Action
 *
 * @copyright YetiForce S.A.
 * @license YetiForce Public License 6.5 (licenses/LicenseEN.txt or yetiforce.com)
 * @author Tomasz Kur <t.kur@yetiforce.com>
 * @author Mariusz Krzaczkowski <m.krzaczkowski@yetiforce.com>
 */
class Settings_WebserviceApps_Delete_Action extends Settings_Vtiger_Index_Action
{
    /**
     * Main process.
     *
     * @param \App\Request $request
     */
    public function process(App\Request $request)
    {
        Settings_WebserviceApps_Record_Model::getInstanceById($request->getInteger('id'))->delete();
        $responceToEmit = new Vtiger_Response();
        $responceToEmit->setResult(true);
        $responceToEmit->emit();
    }
}