AJAX.php
3 months ago
AJAX_Manager.php
4 days ago
Archive_Link.php
3 months ago
Clear_Favorite_Report.php
4 days ago
Click_Tracking_Cache_Cleared.php
3 months ago
Configure_Pruner.php
3 months ago
Copy_Report.php
3 months ago
Create_Campaign.php
2 years ago
Create_Report.php
3 months ago
Delete_Campaign.php
2 years ago
Delete_Data.php
3 months ago
Delete_Link.php
3 months ago
Delete_Module.php
3 months ago
Delete_Report.php
3 months ago
Dismiss_Notice.php
1 year ago
Edit_Link.php
3 months ago
Edit_Module.php
3 months ago
Export_Report_Statistics.php
2 months ago
Export_Report_Table.php
9 months ago
Export_Reports.php
4 days ago
FetchRealTimeData.php
4 days ago
Filter.php
2 months ago
Get_Journey_Timeline.php
6 months ago
Get_Markup_For_Module.php
1 year ago
Get_Markup_For_Modules.php
3 months ago
Import_Reports.php
3 months ago
Migration_Status.php
3 months ago
Pause_Email_Reports.php
3 months ago
Preview_Email.php
2 months ago
Refresh_Modules.php
3 months ago
Rename_Report.php
3 months ago
Reorder_Modules.php
3 months ago
Reset_Analytics.php
3 months ago
Reset_Overview.php
3 months ago
SaveRealTimePreferences.php
4 days ago
Save_Module.php
3 months ago
Save_Report.php
3 months ago
Set_Favorite_Report.php
1 year ago
Set_WooCommerce_Statuses_To_Track.php
3 months ago
Sort_Links.php
3 months ago
Sort_Reports.php
3 months ago
Test_Email.php
2 months ago
Update_Capabilities.php
3 months ago
Update_User_Settings.php
3 months ago
AJAX_Manager.php
66 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\Archive_Link(); |
| 15 | $this->instances[] = new \IAWP\AJAX\Clear_Favorite_Report(); |
| 16 | $this->instances[] = new \IAWP\AJAX\Click_Tracking_Cache_Cleared(); |
| 17 | $this->instances[] = new \IAWP\AJAX\Configure_Pruner(); |
| 18 | $this->instances[] = new \IAWP\AJAX\Set_WooCommerce_Statuses_To_Track(); |
| 19 | $this->instances[] = new \IAWP\AJAX\Copy_Report(); |
| 20 | $this->instances[] = new \IAWP\AJAX\Create_Campaign(); |
| 21 | $this->instances[] = new \IAWP\AJAX\Create_Report(); |
| 22 | $this->instances[] = new \IAWP\AJAX\Delete_Campaign(); |
| 23 | $this->instances[] = new \IAWP\AJAX\Delete_Data(); |
| 24 | $this->instances[] = new \IAWP\AJAX\Delete_Link(); |
| 25 | $this->instances[] = new \IAWP\AJAX\Delete_Module(); |
| 26 | $this->instances[] = new \IAWP\AJAX\Delete_Report(); |
| 27 | $this->instances[] = new \IAWP\AJAX\Dismiss_Notice(); |
| 28 | $this->instances[] = new \IAWP\AJAX\Edit_Link(); |
| 29 | $this->instances[] = new \IAWP\AJAX\Edit_Module(); |
| 30 | $this->instances[] = new \IAWP\AJAX\Export_Report_Statistics(); |
| 31 | $this->instances[] = new \IAWP\AJAX\Export_Report_Table(); |
| 32 | $this->instances[] = new \IAWP\AJAX\Export_Reports(); |
| 33 | $this->instances[] = new \IAWP\AJAX\Filter(); |
| 34 | $this->instances[] = new \IAWP\AJAX\Get_Journey_Timeline(); |
| 35 | $this->instances[] = new \IAWP\AJAX\Get_Markup_For_Module(); |
| 36 | $this->instances[] = new \IAWP\AJAX\Get_Markup_For_Modules(); |
| 37 | $this->instances[] = new \IAWP\AJAX\Import_Reports(); |
| 38 | $this->instances[] = new \IAWP\AJAX\Migration_Status(); |
| 39 | $this->instances[] = new \IAWP\AJAX\Pause_Email_Reports(); |
| 40 | $this->instances[] = new \IAWP\AJAX\Preview_Email(); |
| 41 | $this->instances[] = new \IAWP\AJAX\FetchRealTimeData(); |
| 42 | $this->instances[] = new \IAWP\AJAX\Refresh_Modules(); |
| 43 | $this->instances[] = new \IAWP\AJAX\Rename_Report(); |
| 44 | $this->instances[] = new \IAWP\AJAX\Reorder_Modules(); |
| 45 | $this->instances[] = new \IAWP\AJAX\Reset_Analytics(); |
| 46 | $this->instances[] = new \IAWP\AJAX\Reset_Overview(); |
| 47 | $this->instances[] = new \IAWP\AJAX\Save_Module(); |
| 48 | $this->instances[] = new \IAWP\AJAX\Save_Report(); |
| 49 | $this->instances[] = new \IAWP\AJAX\SaveRealTimePreferences(); |
| 50 | $this->instances[] = new \IAWP\AJAX\Set_Favorite_Report(); |
| 51 | $this->instances[] = new \IAWP\AJAX\Sort_Links(); |
| 52 | $this->instances[] = new \IAWP\AJAX\Sort_Reports(); |
| 53 | $this->instances[] = new \IAWP\AJAX\Test_Email(); |
| 54 | $this->instances[] = new \IAWP\AJAX\Update_Capabilities(); |
| 55 | $this->instances[] = new \IAWP\AJAX\Update_User_Settings(); |
| 56 | } |
| 57 | public function get_action_signatures() : array |
| 58 | { |
| 59 | $action_signatures = []; |
| 60 | foreach ($this->instances as $instance) { |
| 61 | $action_signatures = \array_merge($action_signatures, $instance->get_action_signature()); |
| 62 | } |
| 63 | return $action_signatures; |
| 64 | } |
| 65 | } |
| 66 |