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();
        }
    }