TYPO3 CMS  TYPO3_6-2
DocumentTranslation.php
Go to the documentation of this file.
1 <?php
3 
25 
33  protected $language;
34 
40  protected $title;
41 
47  protected $description;
48 
54  protected $formats;
55 
59  public function __construct() {
60  // Do not remove the next line: It would break the functionality
61  $this->initStorageObjects();
62  }
63 
69  protected function initStorageObjects() {
75  $this->formats = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
76  }
77 
83  public function getLanguage() {
84  return $this->language;
85  }
86 
93  public function setLanguage($language) {
94  $this->language = $language;
95  return $this;
96  }
97 
103  public function getTitle() {
104  return $this->title;
105  }
106 
113  public function setTitle($title) {
114  $this->title = $title;
115  return $this;
116  }
117 
123  public function getDescription() {
124  return $this->description;
125  }
126 
133  public function setDescription($description) {
134  $this->description = $description;
135  return $this;
136  }
137 
144  public function addFormat(\TYPO3\CMS\Documentation\Domain\Model\DocumentFormat $format) {
145  $this->formats->attach($format);
146  return $this;
147  }
148 
155  public function removeFormat(\TYPO3\CMS\Documentation\Domain\Model\DocumentFormat $formatToRemove) {
156  $this->formats->detach($formatToRemove);
157  return $this;
158  }
159 
165  public function getFormats() {
166  return $this->formats;
167  }
168 
175  public function setFormats(\TYPO3\CMS\Extbase\Persistence\ObjectStorage $formats) {
176  $this->formats = $formats;
177  return $this;
178  }
179 
180 }
setFormats(\TYPO3\CMS\Extbase\Persistence\ObjectStorage $formats)
addFormat(\TYPO3\CMS\Documentation\Domain\Model\DocumentFormat $format)
removeFormat(\TYPO3\CMS\Documentation\Domain\Model\DocumentFormat $formatToRemove)