ICanBoogie
  • Documentation
  • API Reference
  • Mailer 1.1.x
Namespaces
  • ICanBoogie
    • Mailer
      • Header
Classes
  • AddressList
  • FileDeliverer
  • Header
  • MailDeliverer
  • Mailer
  • Message
  • MessagePart
Interfaces
  • Deliverer

Class Header

Representation of header fields.

ICanBoogie\Mailer\Header implements ArrayAccess, IteratorAggregate
Namespace: ICanBoogie\Mailer
See: http://tools.ietf.org/html/rfc5322#section-2.2
Located at Header.php

Methods summary

public __construct( array $fields = [] )
public __clone( void )
public __toString( void ) : string

Returns the string representation of the instance.

Returns the string representation of the instance.

Header fields with empty string values are discarded.

Returns

string
public offsetExists( mixed $field ) : boolean

Checks if a header field exists.

Checks if a header field exists.

Parameters

$field

Returns

boolean

Implementation of

ArrayAccess::offsetExists()
public offsetGet( mixed $field ) : string|null

Returns a header.

Returns a header.

Parameters

$field

Returns

string|null
The header field value or null if it is not defined.

Implementation of

ArrayAccess::offsetGet()
public offsetSet( string $field, mixed $value )

Sets a header field.

Sets a header field.

Note: Setting a header field to null removes it, just like unset() would.

Parameters

$field
The header field to set.
$value
The value of the header field.

Implementation of

ArrayAccess::offsetSet()
public offsetUnset( string $field )

Removes a header field.

Removes a header field.

Parameters

$field

Implementation of

ArrayAccess::offsetUnset()
public getIterator( void ) : ArrayIterator

Returns an iterator for the header fields.

Returns an iterator for the header fields.

Returns

ArrayIterator

Implementation of

IteratorAggregate::getIterator()

Properties summary

protected $fields : array

Header fields.

Header fields.

[]
Mailer 1.1.x – Check on GitHub – API documentation generated by ApiGen