public static function deleteActions( $inputs){ if( isset( $inputs["jsiId"]) ) if( Airavata::deleteJobSubmissionInterface( $inputs["crId"], $inputs["jsiId"]) ) return 1; else return 0; else if( isset( $inputs["dmiId"]) ) if( Airavata::deleteDataMovementInterface( $inputs["crId"], $inputs["dmiId"]) ) return 1; else return 0; elseif( isset( $inputs["del-crId"])) if( Airavata::deleteComputeResource( $inputs["del-crId"] ) ) return 1; else return 0; }
public static function deleteActions($inputs) { if (isset($inputs["crId"])) { if (Config::get('pga_config.airavata')['enable-app-catalog-cache']) { if (Cache::has('CR-' . $inputs["crId"])) { Cache::forget('CR-' . $inputs["crId"]); } } } elseif (isset($inputs["del-crId"])) { if (Config::get('pga_config.airavata')['enable-app-catalog-cache']) { if (Cache::has('CR-' . $inputs["del-crId"])) { Cache::forget('CR-' . $inputs["del-crId"]); } } } if (isset($inputs["jsiId"])) { if (Airavata::deleteJobSubmissionInterface(Session::get('authz-token'), $inputs["crId"], $inputs["jsiId"])) { return 1; } else { return 0; } } else { if (isset($inputs["dmiId"])) { if (Airavata::deleteDataMovementInterface(Session::get('authz-token'), $inputs["crId"], $inputs["dmiId"])) { return 1; } else { return 0; } } elseif (isset($inputs["del-crId"])) { if (Airavata::deleteComputeResource(Session::get('authz-token'), $inputs["del-crId"])) { return 1; } else { return 0; } } } }