1 | <?php |
||
14 | class Manager |
||
15 | { |
||
16 | /** |
||
17 | * @var array |
||
18 | */ |
||
19 | private $indices = []; |
||
20 | |||
21 | /** |
||
22 | * @var Store |
||
23 | */ |
||
24 | private $store; |
||
25 | |||
26 | /** |
||
27 | * @param Store $store The As3\Modlr\Store instance |
||
28 | * @param array $schema The bundle's schema configuration |
||
29 | */ |
||
30 | public function __construct(Store $store, array $schema = []) |
||
35 | |||
36 | /** |
||
37 | * Returns the loaded indices |
||
38 | * |
||
39 | * @param string $type The model type to retrieve indices for |
||
40 | * @return array |
||
41 | */ |
||
42 | public function getIndices($type = null) |
||
55 | |||
56 | /** |
||
57 | * Creates an index from the supplied data. |
||
58 | * @todo Change to Metadata\Schema\IndexDefinition or something later |
||
59 | * |
||
60 | * @param array $index Associative array containin index data |
||
61 | * |
||
62 | * @return boolean If the index was created successfully |
||
63 | */ |
||
64 | public function createIndex(array $index) |
||
72 | } |
||
73 |