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 { $user = $pager->getRelevantUser(); $this->getSkin()->setRelevantUser($user); $pager->getForm(); $out->addParserOutputContent($pager->getFullOutput()); } }