@return \SplFileInfo

@throws MissingDownloadableClientsException
492039
public function download()
    {
        foreach ($this->children as $child) {
            if ($child instanceof DownloadableClientInterface) {
                return $child->download();
            }
        }

        throw MissingDownloadableClientsException::create();
    }
958023
public function getContent()
    {
        if (null === $this->templateHelper) {
            throw new \RuntimeException('Rokka TemplateHelper is not set in RokkaHash. Needed for downloading images.');
        }
        if (null === $this->content) {
            $rokkaHash = $this->getRokkaHash();
            if (null !== $rokkaHash) {
                $this->content = $this->templateHelper->getRokkaClient()->getSourceImageContents($rokkaHash);
            }
        }

        return $this->content;
    }
743009
public function getResourceInfo() {
		$resourceInfo = new ResourceInfo ();
		if (isset ( $this->encoding )) {
			$resourceInfo->encoding = $this->encoding;
		} else {
			$resourceInfo->encoding = "UTF-8";
		}
		$resourceInfo->size = strlen ( $this->data );
		$resourceInfo->classifier = $this->fileformat;
		$resourceInfo->name = $this->name;
		
		if (isset ( $this->clientIdentifier )) {
			$resourceInfo->clientIdentifier = $this->clientIdentifier;
		}

		return $resourceInfo;
	}
118233
public function getFileInfo()
    {
        $fullName = str_replace('source/','',$this->fullName);
        return [
            "msg"    => $this->stateInfo,
            "code" => $this->stateInfo == "SUCCESS" ? 0 : $this->stateInfo,
            "data"=>[
                "src"=>$this->imgDomain.$fullName,
                'title'=>$fullName,
            ],
            "type"     => $this->fileType,
            "size"     => $this->fileSize
        ];
    }
1150603
public function getFileInfo() {
    // Create a build list tag from the filename.
    $filename_pieces = explode('.', $this->component_data['filename']);
    if ($filename_pieces[0] == '%module') {
      // Take off the module name from the front.
      array_shift($filename_pieces);
    }
    if (in_array(end($filename_pieces), ['php', 'inc'])) {
      // Take off a file extenstion.
      array_pop($filename_pieces);
    }
    // Implode whatever's left.
    $file_key_tag = implode('.', $filename_pieces);

    return array(
      'path' => '', // Means base folder.
      'filename' => $this->component_data['filename'],
      'body' => $this->fileContents(),
      'build_list_tags' => ['code', $file_key_tag],
    );
  }
353807
public function getFileObject()
    {
        return new SplFileObject(
            self::WNAME . '://' . spl_object_hash($this),
            'rb',
            false,
            stream_context_create(array(
                self::WNAME => array(
                    'string' => $this
                )
            ))
        );
    }
452483
public function getView(string $name): SplFileInfo
    {
        $viewFactory = app(Factory::class);

        $pattern = str_replace('.', DIRECTORY_SEPARATOR, $name);
        $path = $viewFactory->getFinder()->find($name);

        $pos = strpos($path, $pattern);

        $directory = substr($path, 0, $pos);
        $filename = substr($path, $pos);

        return $this->createSplFileInfoInstance($directory, $filename);
    }
61023
public function getFileContent()
    {
        $file = $this->getAttribute('file');
        if (empty($file) && !$this->getIsNewRecord()) {
            $file = $this->refreshFile();
        }

        if (empty($file)) {
            return null;
        } elseif ($file instanceof Download) {
            $fileSize = $file->getSize();
            return empty($fileSize) ? null : $file->toString();
        } elseif ($file instanceof UploadedFile) {
            return file_get_contents($file->tempName);
        } elseif (is_string($file)) {
            if (file_exists($file)) {
                return file_get_contents($file);
            }
            throw new InvalidParamException("File '{$file}' does not exist.");
        }

        throw new InvalidParamException('Unsupported type of "file" attribute.');
    }
1142440
function getDownloadUrl() {
		$inputs = self::remoteXpathQuery($this->videoUrl, '/html/body/div[3]/div[2]/div[2]/div[7]/form/input[@name]');
		
		$postFields = [];
		foreach ($inputs as $input) {
			$postFields[$input->getAttribute('name')] = $input->getAttribute('value');
		}
		
		sleep(11);	//10 sek wait-time is required
		$scriptElements = self::remoteXpathQuery($this->videoUrl, '/html/body/div[3]/div[2]/div[2]/div[1]/script[3]', $postFields);
		
		$textContent = $scriptElements->item(0)->textContent;
		preg_match('/file: ".*\..*"/U', $textContent, $matches);
		$url = substr(reset($matches), 6);
		return trim($url, '"');
	}
59925
public function getFileList()
    {
        $files = new Filesystem;
        return array_map(function (SplFileInfo $file) {
            return $file->getRelativePathname();
        }, $files->allFiles($this->stubDirectory));
    }
1009383
public function getLeftDownloadCount()
    {
        $iLeft = $this->oxorderfiles__oxmaxdownloadcount->value - $this->oxorderfiles__oxdownloadcount->value;
        if ($iLeft < 0) {
            $iLeft = 0;
        }

        return $iLeft;
    }
288145
protected function gatherInfo() {
        $info = new stdClass();
        $info->contents = $this->contents;
        $info->path = $this->path;
        $info->lastModified = $this->lastModified;

        return $info;
    }
165012
public function returnWebServiceSerialisableData(){

        $serialisableMap = $this->__getSerialisablePropertyMap();

        unset($serialisableMap["trace"]);
        unset($serialisableMap["file"]);
        unset($serialisableMap["line"]);
        unset($serialisableMap["traceAsString"]);
        unset($serialisableMap["previous"]);
        $serialisableMap["code"] = $this->getSourceException() ? $this->getSourceException()["code"] : $this->getCode();
        $serialisableMap["message"] = $this->getSourceException() ? $this->getSourceException()["message"] : $this->getMessage();
        unset($serialisableMap["sourceException"]);

        return $serialisableMap;

    }
606449
protected function getPropertiesFile()
    {
        $propertyfile = getcwd().'/build.properties';

        if (true === $this->input->hasParameterOption('--propertyfile')) {
            $propertyfile = realpath($this->input->getParameterOption('--propertyfile'));
        }

        if (is_file($propertyfile) && is_readable($propertyfile)) {
            return $propertyfile;
        }

        if (true === $this->input->hasParameterOption('--propertyfile')) {
            throw new \Exception(
                sprintf(
                    'Could not find properties file "%s"',
                    $this->input->getParameterOption('--propertyfile')
                )
            );
        }

        return false;
    }
640331
public function getContents()
	{
		$level = error_reporting(0);
		$content = file_get_contents($this->getPathname());
		error_reporting($level);

		if (false === $content)
		{
			$error = error_get_last();
			throw new RuntimeException($error['message']);
		}

		return $content;
	}
753829
protected function getFillableReplace()
    {
        $attributes = array_merge(
            $this->data['normal_fillable'],
            $this->data['translated_fillable']
        );

        if ( ! count($attributes)) return '';

        return $this->getAttributePropertySection('fillable', $attributes);
    }
757891
private function contentInfo()
    {
        $path = $this->absPath;

        // if the file doesn't exist yet, point to the fallback one
        if (!file_exists($path) || filesize($path) < 10) {
            // fallback
            $localeFallbacks = $this->app['locale_fallbacks'];
            list($path) = $this->buildPath('infos', reset($localeFallbacks));

            if (!file_exists($path)) {
                $this->app['logger.flash']->danger('Locale infos yml file not found. Fallback also not found.');

                // fallback failed
                return null;
            }
            // we got the fallback, notify user we loaded the fallback
            $this->app['logger.flash']->warning('Locale infos yml file not found, loading the default one.');
        }

        return file_get_contents($path);
    }