controllers/ExplorerController.php
/**
     * Delete program from system for given PID
     *
     * @param int $pid
     */
Delete program from system for given PID
@param int $pid
Delete program from system for given PID @param int $pid
private function deleteSource($pid) {
        $isDeleted = false;
        $programController = new ProgramDetailsController();
        if ($programController->deleteProgram($pid)) {
            Response::sendResponse(Constants::SUCCESS_RESPONSE, Messages::SUCCESS_FILE_DELETION);
            $isDeleted = true;
        } else {
            Response::sendResponse(Constants::SUCCESS_RESPONSE, Messages::ERROR_FILE_DELETION);
        }
    }
private function deleteSource ( $ pid ) { $ isDeleted = false ; $ programController = new ProgramDetailsController ( ) ; if ( $ programController -> deleteProgram ( $ pid ) ) { Response :: sendResponse ( Constants :: SUCCESS_RESPONSE , Messages :: SUCCESS_FILE_DELETION ) ; $ isDeleted = true ; } else { Response :: sendResponse ( Constants :: SUCCESS_RESPONSE , Messages :: ERROR_FILE_DELETION ) ; } }
Delete program from system for given PID
 @param int $pid
Delete program from system for given PID @param int $pid