TYPO3 CMS  TYPO3_6-2
ContentController.php
Go to the documentation of this file.
1 <?php
3 
21 
26  protected $contentRepository;
27 
31  protected $defaultViewObjectName = 'TYPO3\\CMS\\Extbase\\Mvc\\View\\JsonView';
32 
36  public function listAction() {
37  $contents = $this->contentRepository->findAll();
38  $value = $this->getStructure($contents);
39  $this->process($value);
40  }
41 
46  public function showAction(\OliverHader\IrreTutorial\Domain\Model\Content $content) {
47  $value = $this->getStructure($content);
48  $this->process($value);
49  }
50 
56  public function newAction(\OliverHader\IrreTutorial\Domain\Model\Content $newContent = NULL) {
57  $this->view->assign('newContent', $newContent);
58  }
59 
64  public function createAction(\OliverHader\IrreTutorial\Domain\Model\Content $newContent) {
65  $this->contentRepository->add($newContent);
66  $this->redirect('list');
67  }
68 
74  public function editAction(\OliverHader\IrreTutorial\Domain\Model\Content $content) {
75  $this->view->assign('content', $content);
76  }
77 
82  public function updateAction(\OliverHader\IrreTutorial\Domain\Model\Content $content) {
83  $this->contentRepository->update($content);
84  $this->redirect('list');
85  }
86 
91  public function deleteAction(\OliverHader\IrreTutorial\Domain\Model\Content $content) {
92  $this->contentRepository->remove($content);
93  $this->redirect('list');
94  }
95 
96 }
deleteAction(\OliverHader\IrreTutorial\Domain\Model\Content $content)
showAction(\OliverHader\IrreTutorial\Domain\Model\Content $content)
redirect($actionName, $controllerName=NULL, $extensionName=NULL, array $arguments=NULL, $pageUid=NULL, $delay=0, $statusCode=303)
createAction(\OliverHader\IrreTutorial\Domain\Model\Content $newContent)
editAction(\OliverHader\IrreTutorial\Domain\Model\Content $content)
updateAction(\OliverHader\IrreTutorial\Domain\Model\Content $content)
newAction(\OliverHader\IrreTutorial\Domain\Model\Content $newContent=NULL)