示例#1
0
 /**
  * This function is called after the dependencies have been injected by
  * AutoPilot. Think of it as a user-land constructor.
  */
 public function airshipLand()
 {
     parent::airshipLand();
     $this->users = $this->blueprint('UserAccounts');
     $userId = $this->getActiveUserId();
     $this->userUniqueId = $this->users->getUniqueId($userId);
     $this->root_dir = 'user/' . $this->userUniqueId;
     $this->files->ensureDirExists($this->root_dir);
     $this->path_middle = 'my/files';
     $this->attribution = ['author' => null, 'uploaded_by' => $userId];
     $this->storeLensVar('path_middle', $this->path_middle);
     $this->storeLensVar('active_link', 'bridge-link-my-files');
     $this->storeLensVar('header', 'My Files');
     $this->storeLensVar('title', 'My Files');
 }