下载原始笔记
@param string $id
@return string|Response
483517
public function actionDownload($id)
    {
        $model = $this->findModel($id);
        if ($model && ($model->isPublic() || $model->isAuthor())) {
            return Yii::$app->response->sendContentAsFile($model->content, $model->title);
        } else {
            Yii::$app->session->setFlash('success', Yii::t('note', 'Note does not exist.'));
            return $this->redirect(['index']);
        }
    }
1052374
public function actionView($id)
    {
        $request = \Yii::$app->request;
        if ($request->getIsOptions()) {
            return $this->ResponseOptions($this->verbs()['view']);
        }
        $model = $this->findModel($id);

        return  ['model'=>$model,'items'=>$model->getItems(),];
    }
274990
public function get($id) {
        return $this->request("GET", self::URL_ORDERS . $id . "/", $api_key = $this->culqi->api_key);
    }
1158786
public static function get($id)
    {
        $instance = self::getInstance();

        //缓存文件不存在
        if (!$instance->has($id)) {
            return false;
        }

        $file = $instance->_file($id);

        $data = $instance->_fileGetContents($file);

        if ($data['expire'] == 0 || time() < $data['expire']) {
            return $data['contents'];
        }
        return false;
    }
847760
public function show($id)
    {
        $block = $this->repository->getById($id);
        if (!empty($block)) {
            $this->authorize('read', $block);
            return $this->respondWithSuccess($block, new BlockTransformer);
        }
        return $this->respondNotFound();
    }
411394
public function get($id)
    {
        $mode = $this->params('mode', false);
        $type = $this->params('type', false);
        $endpoint = $this->params('endpoint', false);
        $annee = $this->params('annee', 0);
        $processStateHandler = $this->getProcessStateHandler();
        $process = $processStateHandler->getProcess($mode, $type, $endpoint, $annee);
        if (is_null($process))
            $process = $processStateHandler->getDefaultProcess($mode, $type, $endpoint, $annee);
        $response = $this->getResponse();
        $response->getHeaders()->addHeaderLine('Content-Type', 'application/json');
        $serializer = $this->getSerializer();
        $processJson = $serializer->serialize($process, 'json');
        $response->setContent($processJson);
        
        return $response;
    }
973286
public function getCommand($id = null)
    {
        $uri = ($id) ? 'command/' . $id : 'command';

        $response = [
            'uri' => $uri,
            'type' => 'get',
            'data' => []
        ];

        return $this->processRequest($response);
    }
397874
public function getEmployeeWage($id)
    {
        list($response, $statusCode, $httpHeader) = $this->getEmployeeWageWithHttpInfo ($id);
        return $response; 
    }
142015
public function get($id) {
		$result = $this->getBackend()->get($id);
		
		if ($result !== null) {
			return json_decode($result);
		}
	}
794746
public function retrieveEmployee($id)
    {
        list($response, $statusCode, $httpHeader) = $this->retrieveEmployeeWithHttpInfo ($id);
        return $response; 
    }
341341
public function getRequest($id)
    {
        if (!isset($this->request[$id])) {
            return null;
        }

        return $this->request[$id];
    }
477944
public function show($id)
	{
		$entity = $this->getModel()->getRepository()->getById($id);

		return $this->response()
			->item($entity)
			->view($this->getView('show'), [
				'entity' => $entity
			]);
	}
1070516
public function show($id)
    {
        $parameters = $this->request->getParameters();
        $model = $this->repository->getItem($id, $parameters);
        return $this->modelResponse($model);
    }
1212923
public function actionShow($id)
    {
        $model = $this->findModel($id);
        $response = Yii::$app->getResponse();
        return $response->sendFile($model->filename, $model->name, [
                'mimeType' => $model->type,
                'fileSize' => $model->size,
                'inline' => true
        ]);
    }
434530
public function actionView($id)
    {
        $record = $this->findRecord($id);
        if ($record->lastExec && $record->lastExec->isFailed()) {
            return $this->redirect(['view-attempts', 'id' => $record->id]);
        }
        return $this->redirect(['view-details', 'id' => $record->id]);
    }
759486
public function actionView(string $id)
    {
        $model = $this->findModel($id);

        return $this->render('view', ['model' => $model]);
    }
1257948
public function show($id = null)
    {
        if ($id === 'new') {
            return response()->json([
                'entry' => WinkTag::make([
                    'id' => Str::uuid(),
                ]),
            ]);
        }

        $entry = WinkTag::findOrFail($id);

        return response()->json([
            'entry' => $entry,
        ]);
    }