Overview
  • Namespace
  • Class
  • Tree

Namespaces

  • Modulework
    • Modules
      • Http
        • Exceptions
        • Utilities
  • PHP

Classes

  • ArrayCase
  • FileCase
  • HeaderCase
  • HeaderWrapper
  • IpValidator
  • ServerCase

Interfaces

  • ArrayCaseInterface
  • HeaderWrapperInterface
  • IpValidatorInterface

Class HeaderWrapper

HeaderWrapper This class wraps header releated methods:

  • headers_sent()
  • header()
  • setcookie()
Modulework\Modules\Http\Utilities\HeaderWrapper implements Modulework\Modules\Http\Utilities\HeaderWrapperInterface
Namespace: Modulework\Modules\Http\Utilities
Located at Modulework/Modules/Http/Utilities/HeaderWrapper.php

Methods summary

public static boolean
# headers_sent( string & $file = null, string & $line = null )

Wrapper for PHP' s headers_sent()

Wrapper for PHP' s headers_sent()

Parameters

$file
string
$file filename (optional)
$line
string
$line linenumber (optional)

Returns

boolean
The return value of PHP' s headers send

Implementation of

Modulework\Modules\Http\Utilities\HeaderWrapperInterface::headers_sent()
public static
# header( string $string, boolean $replace = true, integer $http_response_code = null )

Wrapper for PHP' s header()

Wrapper for PHP' s header()

Parameters

$string
string
$string Der Header-String.
$replace
boolean
$replace Replace existing headers
$http_response_code
integer
$http_response_code The HTTP response code

Implementation of

Modulework\Modules\Http\Utilities\HeaderWrapperInterface::header()
public static boolean
# setcookie( strign $name, string $value = null, integer $expire = 0, string $path = null, string $domain = null, boolean $secure = false, boolean $httponly = false )

Wrapper for PHP' s setcookie()

Wrapper for PHP' s setcookie()

Parameters

$name
strign
$name The name of the cookie
$value
string
$value The value of the cookie
$expire
integer
$expire Expire date of the cookie
$path
string
$path Valid path for the cookie
$domain
string
$domain Domain name of the cookie
$secure
boolean
$secure Only accessable with SSL (HTTPS)
$httponly
boolean
$httponly Only accessable through HTTP protocol

Returns

boolean

Implementation of

Modulework\Modules\Http\Utilities\HeaderWrapperInterface::setcookie()

Magic methods summary

API documentation generated by ApiGen 2.8.0