TYPO3 CMS  TYPO3_6-2
Document.php
Go to the documentation of this file.
1 <?php
3 
24 
31  protected $packageKey;
32 
39  protected $extensionKey;
40 
46  protected $icon;
47 
53  protected $translations;
54 
58  public function __construct() {
59  // Do not remove the next line: It would break the functionality
60  $this->initStorageObjects();
61  }
62 
68  protected function initStorageObjects() {
74  $this->translations = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
75  }
76 
82  public function getPackageKey() {
83  return $this->packageKey;
84  }
85 
92  public function setPackageKey($packageKey) {
93  $this->packageKey = $packageKey;
94  return $this;
95  }
96 
102  public function getExtensionKey() {
103  return $this->extensionKey;
104  }
105 
112  public function setExtensionKey($extensionKey) {
113  $this->extensionKey = $extensionKey;
114  return $this;
115  }
116 
122  public function getIcon() {
123  return $this->icon;
124  }
125 
132  public function setIcon($icon) {
133  $this->icon = $icon;
134  return $this;
135  }
136 
143  public function addTranslation(\TYPO3\CMS\Documentation\Domain\Model\DocumentTranslation $translation) {
144  $this->translations->attach($translation);
145  return $this;
146  }
147 
154  public function removeTranslation(\TYPO3\CMS\Documentation\Domain\Model\DocumentTranslation $translationToRemove) {
155  $this->translations->detach($translationToRemove);
156  return $this;
157  }
158 
164  public function getTranslations() {
165  return $this->translations;
166  }
167 
174  public function setTranslations(\TYPO3\CMS\Extbase\Persistence\ObjectStorage $translations) {
175  $this->translations = $translations;
176  return $this;
177  }
178 
179 }
removeTranslation(\TYPO3\CMS\Documentation\Domain\Model\DocumentTranslation $translationToRemove)
Definition: Document.php:154
addTranslation(\TYPO3\CMS\Documentation\Domain\Model\DocumentTranslation $translation)
Definition: Document.php:143
setTranslations(\TYPO3\CMS\Extbase\Persistence\ObjectStorage $translations)
Definition: Document.php:174