/**
     * Outputs the Subscription Management admin page with a sortable @see WC_Subscriptions_List_Table used to
     * display all the subscriptions that have been purchased.
     * 
     * @uses WC_Subscriptions_List_Table
     * @since 1.0
     */
    public static function subscriptions_management_page()
    {
        require_once 'class-wc-subscriptions-list-table.php';
        $subscriptions_table = new WC_Subscriptions_List_Table();
        $subscriptions_table->prepare_items();
        ?>
<div class="wrap">
	<div id="icon-woocommerce" class="icon32-woocommerce-users icon32"><br/></div>
	<h2><?php 
        _e('Manage Subscriptions', WC_Subscriptions::$text_domain);
        ?>
</h2>
	<?php 
        $subscriptions_table->messages();
        ?>
	<?php 
        $subscriptions_table->views();
        ?>
	<form id="subscriptions-filter" method="get">
		<?php 
        $subscriptions_table->display();
        ?>
	</form>
</div>
		<?php 
    }
    /**
     * Outputs the Subscription Management admin page with a sortable @see WC_Subscriptions_List_Table used to
     * display all the subscriptions that have been purchased.
     * 
     * @uses WC_Subscriptions_List_Table
     * @since 1.0
     */
    public static function subscriptions_management_page()
    {
        require_once 'class-wc-subscriptions-list-table.php';
        $subscriptions_table = new WC_Subscriptions_List_Table();
        $subscriptions_table->prepare_items();
        ?>
<div class="wrap">
	<div id="icon-woocommerce" class="icon32-woocommerce-users icon32"><br/></div>
	<h2><?php 
        _e('Manage Subscriptions', WC_Subscriptions::$text_domain);
        ?>
</h2>
	<?php 
        $subscriptions_table->messages();
        ?>
	<?php 
        $subscriptions_table->views();
        ?>
	<form id="subscriptions-search" action="" method="get"><?php 
        // Don't send all the subscription meta across
        ?>
		<?php 
        $subscriptions_table->search_box(__('Search Subscriptions', WC_Subscriptions::$text_domain), 'subscription');
        ?>
		<input type="hidden" name="page" value="subscriptions" />
		<?php 
        if (isset($_REQUEST['status'])) {
            ?>
			<input type="hidden" name="status" value="<?php 
            echo esc_attr($_REQUEST['status']);
            ?>
" />
		<?php 
        }
        ?>
	</form>
	<form id="subscriptions-filter" action="" method="get">
		<?php 
        $subscriptions_table->display();
        ?>
	</form>
</div>
		<?php 
    }
 /**
  * Returns the columns for the Manage Subscriptions table, specifically used for adding the
  * show/hide column screen options.
  *
  * @since 1.3.1
  */
 public static function get_subscription_table_columns($columns)
 {
     if (!class_exists('WC_Subscriptions_List_Table')) {
     }
     require_once 'class-wc-subscriptions-list-table.php';
     $subscriptions_table = new WC_Subscriptions_List_Table();
     return array_merge($subscriptions_table->get_columns(), $columns);
 }
 /**
  * To implement subscription search & next payment date sorting, @see $this->prepare_items() uses the
  * @see WC_Subscriptions_Manager::get_all_users_subscriptions() function.
  *
  * @since 1.4.4
  */
 public function handle_fatal_errors()
 {
     if (false === self::$shutdown_notice_shown && ($error = error_get_last())) {
         $admin_url = admin_url('admin.php?page=subscriptions');
         if (substr($error['message'], 0, 22) === 'Maximum execution time') {
             $message = sprintf(__("The server's maximum execution time is too low to perform this operation. Please contact %sWooThemes Support%s to notify us of the issue. %sReturn to Main Subscriptions Page%s.", 'woocommerce-subscriptions'), '<a href="http://support.woothemes.com">', '</a>', '<a href="' . $admin_url . '">', '</a>');
         } elseif (substr($error['message'], 0, 19) === 'Allowed memory size') {
             $message = sprintf(__("The server's maximum memory size is too low to perform this operation. Please increase the %smaximum memory limit using the %sWP_MAX_MEMORY_LIMIT%s constant. %sReturn to Main Subscriptions Page%s.", 'woocommerce-subscriptions'), '<a href="http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP">', '<code>', '</code></a>', '<a href="' . $admin_url . '">', '</a>');
         } else {
             $message = '';
         }
         if (!empty($message)) {
             self::$shutdown_notice_shown = true;
             echo '<div id="moderated" class="error"><p>' . $message . '</p></div>';
         }
     }
 }