HumHub Documentation (unofficial)

Age
in package
implements HeaderInterface

Age HTTP Header

Tags
link
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.6

Table of Contents

Interfaces

HeaderInterface
Interface for HTTP Header classes.

Properties

$deltaSeconds  : int
Estimate of the amount of time in seconds since the response

Methods

__construct()  : mixed
fromString()  : static
Create Age header from string
getDeltaSeconds()  : int
Get number of seconds
getFieldName()  : string
Get header name
getFieldValue()  : string
Get header value (number of seconds)
setDeltaSeconds()  : $this
Set number of seconds
toString()  : string
Return header line In case of overflow RFC states to set value of 2147483648 (2^31)

Properties

$deltaSeconds

Estimate of the amount of time in seconds since the response

protected int $deltaSeconds

Methods

__construct()

public __construct([null|int $deltaSeconds = null ]) : mixed
Parameters
$deltaSeconds : null|int = null

fromString()

Create Age header from string

public static fromString(string $headerLine) : static
Parameters
$headerLine : string
Tags
throws
InvalidArgumentException
Return values
static

getDeltaSeconds()

Get number of seconds

public getDeltaSeconds() : int
Return values
int

getFieldName()

Get header name

public getFieldName() : string
Return values
string

getFieldValue()

Get header value (number of seconds)

public getFieldValue() : string
Return values
string

setDeltaSeconds()

Set number of seconds

public setDeltaSeconds(int $delta) : $this
Parameters
$delta : int
Return values
$this

toString()

Return header line In case of overflow RFC states to set value of 2147483648 (2^31)

public toString() : string
Return values
string

        
On this page

Search results