W3TCExtension_NewRelic_AdminActions

The W3 Total Cache W3TC Extension NewRelic AdminActions class.

Defined (1)

The class is defined in the following location(s).

/Extension_NewRelic_AdminActions.php  
  1. class Extension_NewRelic_AdminActions { 
  2. private $_config = null; 
  3.  
  4. function __construct() { 
  5. $this->_config = Dispatcher::config(); 
  6.  
  7.  
  8.  
  9. function w3tc_save_new_relic() { 
  10. $service = Dispatcher::component( 'Extension_NewRelic_Service' ); 
  11. $application = Util_Request::get_array( 'application' ); 
  12. $application['alerts_enabled'] = $application['alerts_enabled'] == 1 ? 'true' : 'false'; 
  13. $application['rum_enabled'] = $application['rum_enabled'] == 1 ? 'true' : 'false'; 
  14. $result=$service->update_application_settings( $application ); 
  15. Util_Admin::redirect( array( 
  16. 'w3tc_note' => 'new_relic_save' 
  17. ), true );