Esempio n. 1
0
 public function view()
 {
     $fsl = new FileSetList();
     if (isset($_REQUEST['fsKeywords'])) {
         $fsl->filterByKeywords($_REQUEST['fsKeywords']);
     }
     if (isset($_REQUEST['fsType'])) {
         $fsl->filterByType($_REQUEST['fsType']);
         $this->set('fsType', $_REQUEST['fsType']);
     } else {
         $fsl->filterByType(FileSet::TYPE_PUBLIC);
         $this->set('fsType', FileSet::TYPE_PUBLIC);
     }
     $fileSets = $fsl->getPage();
     $this->set('fileSets', $fileSets);
     $this->set('fsl', $fsl);
 }