1 | <?php |
||
18 | class CollectionManager extends TrackingManager |
||
19 | { |
||
20 | /** |
||
21 | * A copy of the collection definitions to be available for later usage |
||
22 | * |
||
23 | * @var string[][] |
||
24 | */ |
||
25 | private $collectionDefinitions; |
||
26 | |||
27 | /** |
||
28 | * @param string $filePath |
||
29 | * |
||
30 | * @return ContentItem |
||
31 | */ |
||
32 | 1 | public function &getContentItem ($filePath) |
|
36 | |||
37 | /** |
||
38 | * Get all of the Content Items grouped by Collection |
||
39 | * |
||
40 | * @return ContentItem[][] |
||
41 | */ |
||
42 | 2 | public function &getCollections () |
|
46 | |||
47 | /** |
||
48 | * Get jailed ContentItems |
||
49 | * |
||
50 | * @return JailObject[][] |
||
51 | */ |
||
52 | public function getJailedCollections () |
||
66 | |||
67 | /** |
||
68 | * Get the name of the Collection this Content Item belongs to |
||
69 | * |
||
70 | * @param string $filePath |
||
71 | * |
||
72 | * @return string |
||
73 | */ |
||
74 | public function getTentativeCollectionName ($filePath) |
||
86 | |||
87 | /** |
||
88 | * Parse every collection and store them in the manager |
||
89 | * |
||
90 | * @param string[][] $collections An array of definitions for collections |
||
91 | */ |
||
92 | 4 | public function parseCollections ($collections) |
|
128 | |||
129 | /** |
||
130 | * {@inheritdoc} |
||
131 | */ |
||
132 | public function createNewItem($filePath) |
||
140 | |||
141 | /** |
||
142 | * {@inheritdoc} |
||
143 | */ |
||
144 | public function refreshItem($filePath) |
||
148 | |||
149 | /** |
||
150 | * {@inheritdoc} |
||
151 | */ |
||
152 | 4 | protected function handleTrackableItem($filePath, $options = array()) |
|
169 | } |