/**
  * Entry method.
  *
  * Handles Plugin installation.
  *
  * @access public
  * @static
  */
 function install()
 {
     $me = new AgmPluginInstaller();
     if (!$me->has_database_table()) {
         $me->create_database_table();
         $me->set_default_options();
     }
 }
 function json_reset_options()
 {
     $status = false;
     if (current_user_can('manage_options')) {
         $installer = new AgmPluginInstaller();
         $installer->set_default_options();
         $status = true;
     }
     header('Content-type: application/json');
     echo json_encode(array('status' => $status ? 1 : 0));
     exit;
 }