1 | <?php |
||
26 | class DataManager extends TrackingManager |
||
27 | { |
||
28 | /** |
||
29 | * Get all of the DataItems and DataSets in this manager. |
||
30 | * |
||
31 | * @return array |
||
32 | */ |
||
33 | 2 | public function &getDataItems() |
|
37 | |||
38 | 2 | public function getJailedDataItems() |
|
42 | |||
43 | /** |
||
44 | * Loop through all of the DataItems specified in `$folders`. Each folder will have contain just DataItems. |
||
45 | * |
||
46 | * For each folder, supported file type is read, parsed, and made available through `$this->getDataItems()` |
||
47 | * |
||
48 | * @param string[] $folders An array of folders to be searched for to contain DataItems |
||
49 | */ |
||
50 | 1 | public function parseDataItems($folders) |
|
51 | { |
||
52 | 1 | if ($folders === null) |
|
53 | { |
||
54 | return; |
||
55 | } |
||
56 | |||
57 | 1 | foreach ($folders as $folder) |
|
58 | { |
||
59 | 1 | $this->saveFolderDefinition($folder); |
|
60 | 1 | $this->scanTrackableItems( |
|
61 | $folder, |
||
62 | 1 | array(), |
|
63 | 1 | array(), |
|
64 | 1 | array('/\.example$/') |
|
65 | ); |
||
66 | } |
||
67 | 1 | } |
|
68 | |||
69 | /** |
||
70 | * Loop through all of the DataSets specified in `$dataSets`. Each DataSet contains a name and a folder location. |
||
71 | * |
||
72 | * For each folder, supported file type is read, parsed, and made available through `$this->getDataItems()` |
||
73 | * |
||
74 | * @param string[] $dataSets An array of DataSets |
||
75 | */ |
||
76 | 1 | public function parseDataSets($dataSets) |
|
104 | |||
105 | /** |
||
106 | * {@inheritdoc} |
||
107 | */ |
||
108 | 2 | protected function handleTrackableItem($filePath, $options = array()) |
|
139 | } |
||
140 |