phpQuery::ajaxAllowHost PHP Method

ajaxAllowHost() public static method

public static ajaxAllowHost ( $host1, $host2 = null, $host3 = null )
    public static function ajaxAllowHost($host1, $host2 = null, $host3 = null)
    {
        $loop = is_array($host1) ? $host1 : func_get_args();
        foreach ($loop as $host) {
            if ($host && !in_array($host, self::$ajaxAllowedHosts)) {
                self::$ajaxAllowedHosts[] = $host;
            }
        }
    }

Usage Example

 public static function ajaxAllowURL($url1, $url2 = null, $url3 = null)
 {
     $loop = is_array($url1) ? $url1 : func_get_args();
     foreach ($loop as $url) {
         phpQuery::ajaxAllowHost(parse_url($url, PHP_URL_HOST));
     }
 }
All Usage Examples Of phpQuery::ajaxAllowHost