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

index() public method

public index ( string $authorId, string $cabin = '' )
$authorId string
$cabin string
    public function index(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);
        }
        return $this->commonIndex($dir, $cabin);
    }