QM_Util::is_ajax PHP Method

is_ajax() public static method

public static is_ajax ( )
        public static function is_ajax()
        {
            if (defined('DOING_AJAX') and DOING_AJAX) {
                return true;
            }
            return false;
        }

Usage Example

Beispiel #1
0
 public function after_output()
 {
     # flush once, because we're nice
     if (QM_Util::is_ajax() and ob_get_length()) {
         ob_flush();
     }
 }
All Usage Examples Of QM_Util::is_ajax