Airship\Cabin\Bridge\Landing\AuthorFiles::getFileInfo PHP Method

getFileInfo() public method

public getFileInfo ( string $authorId, string $cabin = '' )
$authorId string
$cabin string
    public function getFileInfo(string $authorId, string $cabin = '')
    {
        $this->loadAuthorInfo((int) $authorId);
        $this->files->ensureDirExists($this->root_dir, $cabin);
        $this->files->ensureDirExists($this->root_dir . '/photos', $cabin);
        $dir = $this->determinePath($cabin);
        if (!\in_array($cabin, $this->getCabinNamespaces())) {
            \Airship\redirect($this->airship_cabin_prefix);
        }
        $this->storeLensVar('title', \__('%s (Author: %s)', 'default', Util::noHTML(!empty($dir) ? $dir . '/' . $_GET['file'] : $_GET['file']), $this->authorName));
        return $this->commonGetFileInfo($_GET['file'], $dir, $cabin);
    }