TYPO3 CMS  TYPO3_6-2
Documentation.php
Go to the documentation of this file.
1 <?php
2 namespace TYPO3\Flow\Package;
3 
4 /* *
5  * This script belongs to the TYPO3 Flow framework. *
6  * *
7  * It is free software; you can redistribute it and/or modify it under *
8  * the terms of the GNU Lesser General Public License, either version 3 *
9  * of the License, or (at your option) any later version. *
10  * *
11  * The TYPO3 project - inspiring people to share! *
12  * */
13 
20 
25  protected $package;
26 
30  protected $documentationName;
31 
36  protected $documentationPath;
37 
46  $this->package = $package;
47  $this->documentationName = $documentationName;
48  $this->documentationPath = $documentationPath;
49  }
50 
57  public function getPackage() {
58  return $this->package;
59  }
60 
67  public function getDocumentationName() {
69  }
70 
77  public function getDocumentationPath() {
79  }
80 
87  public function getDocumentationFormats() {
88  $documentationFormats = array();
89 
90  $documentationFormatsDirectoryIterator = new \DirectoryIterator($this->documentationPath);
91  $documentationFormatsDirectoryIterator->rewind();
92  while ($documentationFormatsDirectoryIterator->valid()) {
93  $filename = $documentationFormatsDirectoryIterator->getFilename();
94  if ($filename[0] != '.' && $documentationFormatsDirectoryIterator->isDir()) {
95  $documentationFormat = new \TYPO3\Flow\Package\Documentation\Format($filename, $this->documentationPath . $filename . '/');
96  $documentationFormats[$filename] = $documentationFormat;
97  }
98  $documentationFormatsDirectoryIterator->next();
99  }
100 
101  return $documentationFormats;
102  }
103 }
104 ?>
__construct($package, $documentationName, $documentationPath)