1 | <?php |
||
9 | class Store extends Base |
||
10 | { |
||
11 | /** |
||
12 | * Load and instantiate the specified store. |
||
13 | * |
||
14 | * @param string $storeType The type of store to load. |
||
15 | * |
||
16 | * @return object The store object. |
||
17 | */ |
||
18 | 9 | public static function load($storeType) |
|
24 | |||
25 | |||
26 | /** |
||
27 | * Load the abstract store file. |
||
28 | * |
||
29 | * @static |
||
30 | * |
||
31 | * @return void |
||
32 | * |
||
33 | * @throws \Exception is the abstract store file couldn't be loaded. |
||
34 | */ |
||
35 | 9 | private static function loadAbstractStoreFile() |
|
45 | |||
46 | |||
47 | /** |
||
48 | * Load the store file for the specified type. |
||
49 | * |
||
50 | * @static |
||
51 | * |
||
52 | * @param string $storeType The type of store to load. |
||
53 | * |
||
54 | * @return void |
||
55 | * |
||
56 | * @throws \Exception is the store file couldn't be loaded. |
||
57 | */ |
||
58 | 9 | private static function loadStoreTypeFile($storeType) |
|
69 | |||
70 | |||
71 | /** |
||
72 | * Instantiate the store class for the specified type. |
||
73 | * |
||
74 | * @static |
||
75 | * |
||
76 | * @param string $storeType The type of store to load. |
||
77 | * |
||
78 | * @return object The store class instance. |
||
79 | * |
||
80 | * @throws \Exception is the store class couldn't be found. |
||
81 | */ |
||
82 | 3 | private static function instantiateStoreClass($storeType) |
|
92 | } |
||
93 |