Inheritance: extends Airship\Cabin\Bridge\Landing\LoggedInUsersOnly, use trait Airship\Engine\Bolt\Get
示例#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->author = $this->blueprint('Author');
     $this->storeLensVar('active_link', 'bridge-link-authors');
     $this->storeLensVar('title', \__('Author\'s Files'));
 }
示例#2
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();
     if (!$this->isSuperUser()) {
         \Airship\redirect($this->airship_cabin_prefix);
     }
     $this->path_middle = 'file_manager';
     $userId = $this->getActiveUserId();
     $this->attribution = ['author' => null, 'uploaded_by' => $userId];
     $this->storeLensVar('path_middle', $this->path_middle);
     $this->storeLensVar('header', 'Files');
 }