Example #1
0
 /**
  * @param int $wikiId
  * @param int $id
  */
 public function handleDelete($wikiId, $id)
 {
     $wikiDraft = $this->getItem($id, $this->wikiDraftRepository);
     $this->checkWikiDraft($wikiDraft, $wikiId);
     $this->wikiDraftRepository->delete($wikiDraft);
     $this->redirect('default', array('wikiId' => $wikiId));
 }
Example #2
0
 protected function insideRender(ITemplate $template)
 {
     $template->latestDraft = $this->newerDraftExists ? $this->wikiDraftRepository->getLatestByWiki($this->item) : null;
 }