Example #1
0
 public function loadData()
 {
     if (empty($this->settings)) {
         return;
     }
     $dirReader = new FolderReader($this->settings);
     $this->key = isset($_GET['key']) ? $_GET['key'] : array_keys($this->settings)[0];
     $this->selected = isset($_GET['file']) ? $_GET['file'] : 0;
     $this->page = isset($_GET['p']) ? $_GET['p'] : 0;
     $this->position = isset($_GET['pos']) ? $_GET['pos'] : 0;
     $this->lines = isset($_GET['lines']) ? $_GET['lines'] : 15;
     $this->files = $dirReader->readDirs();
 }