/**
* Loads all the necessary information for this author
*
* @param int $authorId
*/
protected function loadAuthorInfo(int $authorId)
{
$this->authorId = $authorId;
$this->authorName = $this->author->getName($authorId);
$this->authorSlug = $this->author->getSlug($authorId);
$this->storeLensVar('header', \__('Files for Author "%s"', 'default', Util::noHTML($this->authorName)));
$this->storeLensVar('title', \__('Files for Author "%s"', 'default', Util::noHTML($this->authorName)));
$this->root_dir = 'author/' . $this->authorSlug;
$this->path_middle = 'author/files/' . $authorId;
$this->storeLensVar('path_middle', $this->path_middle);
$userId = $this->getActiveUserId();
$this->attribution = ['author' => $authorId, 'uploaded_by' => $userId];
}