public function inputCrud($request)
 {
     $input_crud = new FormInputCrud();
     if ($request['edit_input']) {
         $input_crud->editInput($request);
     } else {
         if ($request['update_input']) {
             $input_crud->updateInput($request, true);
         } else {
             if ($request['delete_input']) {
                 $input_crud->deleteInput($request, true);
             } else {
                 if (!empty($request['add_input'])) {
                     $input_crud->addInput($request, true);
                 }
             }
         }
     }
 }
<?php

require_once dirname(__FILE__) . '/../classes/FormInputCrud.class.php';
$input_crud = new FormInputCrud();
if ($_REQUEST['edit_input']) {
    $input_crud->editInput($_REQUEST);
} else {
    if ($_REQUEST['update_input']) {
        $input_crud->updateInput($_REQUEST, true);
    } else {
        if ($_REQUEST['delete_input']) {
            $input_crud->deleteInput($_REQUEST, true);
        } else {
            if (!empty($_REQUEST['add_input'])) {
                $input_crud->addInput($_REQUEST, true);
            }
        }
    }
}