AJAX.php
2 years ago
AJAX_Manager.php
1 year ago
Configure_Pruner.php
2 years ago
Confirm_Cache_Cleared.php
2 years ago
Copy_Report.php
2 years ago
Create_Campaign.php
2 years ago
Create_Report.php
2 years ago
Delete_Campaign.php
2 years ago
Delete_Data.php
2 years ago
Delete_Report.php
2 years ago
Export_Campaigns.php
2 years ago
Export_Devices.php
2 years ago
Export_Geo.php
2 years ago
Export_Pages.php
2 years ago
Export_Referrers.php
2 years ago
Export_Reports.php
1 year ago
Filter.php
1 year ago
Import_Reports.php
2 years ago
Migration_Status.php
2 years ago
Preview_Email.php
2 years ago
Real_Time_Data.php
2 years ago
Rename_Report.php
2 years ago
Reset_Analytics.php
2 years ago
Save_Report.php
2 years ago
Set_Favorite_Report.php
2 years ago
Set_WooCommerce_Statuses_To_Track.php
1 year ago
Sort_Reports.php
2 years ago
Test_Email.php
2 years ago
Update_Capabilities.php
2 years ago
Update_User_Settings.php
2 years ago
AJAX_Manager.php
52 lines
| 1 | <?php |
| 2 | |
| 3 | namespace IAWP\AJAX; |
| 4 | |
| 5 | use IAWP\Utils\Singleton; |
| 6 | /** @internal */ |
| 7 | class AJAX_Manager |
| 8 | { |
| 9 | use Singleton; |
| 10 | /** @var AJAX[] */ |
| 11 | private $instances = []; |
| 12 | private function __construct() |
| 13 | { |
| 14 | $this->instances[] = new \IAWP\AJAX\Configure_Pruner(); |
| 15 | $this->instances[] = new \IAWP\AJAX\Set_WooCommerce_Statuses_To_Track(); |
| 16 | $this->instances[] = new \IAWP\AJAX\Confirm_Cache_Cleared(); |
| 17 | $this->instances[] = new \IAWP\AJAX\Copy_Report(); |
| 18 | $this->instances[] = new \IAWP\AJAX\Create_Campaign(); |
| 19 | $this->instances[] = new \IAWP\AJAX\Create_Report(); |
| 20 | $this->instances[] = new \IAWP\AJAX\Delete_Campaign(); |
| 21 | $this->instances[] = new \IAWP\AJAX\Delete_Data(); |
| 22 | $this->instances[] = new \IAWP\AJAX\Delete_Report(); |
| 23 | $this->instances[] = new \IAWP\AJAX\Export_Campaigns(); |
| 24 | $this->instances[] = new \IAWP\AJAX\Export_Devices(); |
| 25 | $this->instances[] = new \IAWP\AJAX\Export_Geo(); |
| 26 | $this->instances[] = new \IAWP\AJAX\Export_Pages(); |
| 27 | $this->instances[] = new \IAWP\AJAX\Export_Referrers(); |
| 28 | $this->instances[] = new \IAWP\AJAX\Export_Reports(); |
| 29 | $this->instances[] = new \IAWP\AJAX\Filter(); |
| 30 | $this->instances[] = new \IAWP\AJAX\Import_Reports(); |
| 31 | $this->instances[] = new \IAWP\AJAX\Migration_Status(); |
| 32 | $this->instances[] = new \IAWP\AJAX\Preview_Email(); |
| 33 | $this->instances[] = new \IAWP\AJAX\Real_Time_Data(); |
| 34 | $this->instances[] = new \IAWP\AJAX\Rename_Report(); |
| 35 | $this->instances[] = new \IAWP\AJAX\Reset_Analytics(); |
| 36 | $this->instances[] = new \IAWP\AJAX\Save_Report(); |
| 37 | $this->instances[] = new \IAWP\AJAX\Set_Favorite_Report(); |
| 38 | $this->instances[] = new \IAWP\AJAX\Sort_Reports(); |
| 39 | $this->instances[] = new \IAWP\AJAX\Test_Email(); |
| 40 | $this->instances[] = new \IAWP\AJAX\Update_Capabilities(); |
| 41 | $this->instances[] = new \IAWP\AJAX\Update_User_Settings(); |
| 42 | } |
| 43 | public function get_action_signatures() : array |
| 44 | { |
| 45 | $action_signatures = []; |
| 46 | foreach ($this->instances as $instance) { |
| 47 | $action_signatures = \array_merge($action_signatures, $instance->get_action_signature()); |
| 48 | } |
| 49 | return $action_signatures; |
| 50 | } |
| 51 | } |
| 52 |