Pimcore\Model\Asset\WebDAV\File::get PHP 메소드

get() 공개 메소드

public get ( ) : mixed | void
리턴 mixed | void
    public function get()
    {
        if ($this->asset->isAllowed("view")) {
            return fopen($this->asset->getFileSystemPath(), "r", false, FileHelper::getContext());
        } else {
            throw new DAV\Exception\Forbidden();
        }
    }