1 | <?php |
||
24 | class LegacyAccountingAssetManager extends AssetManager |
||
25 | { |
||
26 | |||
27 | const JS_HANDLE_UNDERSCORE = 'underscore'; |
||
28 | |||
29 | const JS_HANDLE_ACCOUNTING_CORE = 'ee-accounting-core'; |
||
30 | |||
31 | const JS_HANDLE_ACCOUNTING = 'ee-accounting'; |
||
32 | |||
33 | |||
34 | /** |
||
35 | * @var EE_Currency_Config $currency_config |
||
36 | */ |
||
37 | protected $currency_config; |
||
38 | |||
39 | /** |
||
40 | * CoreAssetRegister constructor. |
||
41 | * |
||
42 | * @param AssetCollection $assets |
||
43 | * @param DomainInterface $domain |
||
44 | * @param Registry $registry |
||
45 | * @param EE_Currency_Config $currency_config |
||
46 | */ |
||
47 | public function __construct( |
||
56 | |||
57 | |||
58 | |||
59 | /** |
||
60 | * @throws InvalidDataTypeException |
||
61 | * @throws InvalidEntityException |
||
62 | * @throws DuplicateCollectionIdentifierException |
||
63 | * @throws DomainException |
||
64 | */ |
||
65 | public function addAssets() |
||
70 | |||
71 | |||
72 | /** |
||
73 | * accounting.js for performing client-side calculations |
||
74 | * |
||
75 | * @throws DomainException |
||
76 | * @throws DuplicateCollectionIdentifierException |
||
77 | * @throws InvalidDataTypeException |
||
78 | * @throws InvalidEntityException |
||
79 | * @since $VID:$ |
||
80 | */ |
||
81 | private function loadAccountingJs() |
||
108 | |||
109 | |||
110 | /** |
||
111 | * Returns configuration data for the accounting-js library. |
||
112 | * |
||
113 | * @return array |
||
114 | * @since $VID:$ |
||
115 | */ |
||
116 | private function getAccountingSettings() |
||
137 | |||
138 | |||
139 | /** |
||
140 | * enqueue_scripts - Load the scripts and css |
||
141 | * |
||
142 | * @return void |
||
143 | */ |
||
144 | public function enqueueLegacyAccountingAssets() |
||
148 | } |
||
149 |