VaultPress::ai_ping_get PHP Method

ai_ping_get() public method

public ai_ping_get ( $num = 1, $order = 'ASC' )
    function ai_ping_get($num = 1, $order = 'ASC')
    {
        global $wpdb;
        if (strtolower($order) != 'desc') {
            $order = 'ASC';
        } else {
            $order = 'DESC';
        }
        return $wpdb->get_results($wpdb->prepare("SELECT * FROM {$wpdb->options} WHERE `option_name` LIKE '\\_vp\\_ai\\_ping\\_%%' ORDER BY `option_id` {$order} LIMIT %d", min(10, max(1, (int) $num))));
    }
VaultPress