Get an integration instance
public get_all ( ) : MC4WP_Integration_Fixture[] | ||
리턴 | MC4WP_Integration_Fixture[] |
/** * Show the Integration Settings page * * @internal */ public function show_integrations_page() { if (!empty($_GET['integration'])) { $this->show_integration_settings_page($_GET['integration']); return; } $integrations = $this->integrations->get_all(); require dirname(__FILE__) . '/views/integrations.php'; }
/** * Show the Integration Settings page * * @internal */ public function show_integrations_page() { if (!empty($_GET['integration'])) { $this->show_integration_settings_page($_GET['integration']); return; } // get all installed & enabled integrations $enabled_integrations = $this->integrations->get_enabled_integrations(); // get all integrations but remove enabled integrations from the resulting array $available_integrations = $this->integrations->get_all(); $available_integrations = array_diff($available_integrations, $enabled_integrations); require dirname(__FILE__) . '/views/integrations.php'; }