예제 #1
0
 public function execute($par)
 {
     $this->setHeaders();
     $this->outputHeader();
     if ($this->including()) {
         $userName = $par;
         $search = '';
         $showAll = false;
     } else {
         $userName = $this->getRequest()->getText('user', $par);
         $search = $this->getRequest()->getText('ilsearch', '');
         $showAll = $this->getRequest()->getBool('ilshowall', false);
     }
     $pager = new ImageListPager($this->getContext(), $userName, $search, $this->including(), $showAll);
     $out = $this->getOutput();
     if ($this->including()) {
         $out->addParserOutputContent($pager->getBodyOutput());
     } else {
         $pager->getForm();
         $out->addParserOutputContent($pager->getFullOutput());
     }
 }