OCA\Richdocuments\DownloadResponse::__construct PHP 메소드

__construct() 공개 메소드

public __construct ( OCP\IRequest $request, string $user, string $path )
$request OCP\IRequest
$user string
$path string
    public function __construct(IRequest $request, $user, $path)
    {
        $this->request = $request;
        $this->user = $user;
        $this->path = $path;
        $this->view = new View('/' . $user);
        if (!$this->view->file_exists($path)) {
            $this->setStatus(Http::STATUS_NOT_FOUND);
        }
    }