Geeklog
[ class tree: Geeklog ] [ index: Geeklog ] [ all elements ]

Class: Swift_Mime_SimpleHeaderSet

Source Location: /system/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/SimpleHeaderSet.php

Class Overview


A collection of MIME headers.


Author(s):

  • Chris Corbyn

Implements interfaces:

Methods



Class Details

[line 16]
A collection of MIME headers.



Tags:

author:  Chris Corbyn


[ Top ]


Class Methods


constructor __construct [line 39]

Swift_Mime_SimpleHeaderSet __construct( Swift_Mime_HeaderFactory $factory, [string $charset = null])

Create a new SimpleHeaderSet with the given $factory.



Tags:

access:  public


Parameters:

Swift_Mime_HeaderFactory   $factory  
string   $charset  

[ Top ]

method addDateHeader [line 77]

void addDateHeader( string $name, [int $timestamp = null])

Add a new Date header using $timestamp (UNIX time).



Tags:

access:  public



Implementation of:
Swift_Mime_HeaderSet::addDateHeader()
Add a new Date header using $timestamp (UNIX time).

Parameters:

string   $name  
int   $timestamp  

[ Top ]

method addIdHeader [line 113]

void addIdHeader( string $name, [string|array $ids = null])

Add a new ID header for Message-ID or Content-ID.



Tags:

access:  public



Implementation of:
Swift_Mime_HeaderSet::addIdHeader()
Add a new ID header for Message-ID or Content-ID.

Parameters:

string   $name  
string|array   $ids  

[ Top ]

method addMailboxHeader [line 65]

void addMailboxHeader( string $name, [array|string $addresses = null])

Add a new Mailbox Header with a list of $addresses.



Tags:

access:  public



Implementation of:
Swift_Mime_HeaderSet::addMailboxHeader()
Add a new Mailbox Header with a list of $addresses.

Parameters:

string   $name  
array|string   $addresses  

[ Top ]

method addParameterizedHeader [line 102]

void addParameterizedHeader( string $name, [string $value = null], [array $params = array()])

Add a new ParameterizedHeader with $name, $value and $params.



Tags:

access:  public



Implementation of:
Swift_Mime_HeaderSet::addParameterizedHeader()
Add a new ParameterizedHeader with $name, $value and $params.

Parameters:

string   $name  
string   $value  
array   $params  

[ Top ]

method addPathHeader [line 124]

void addPathHeader( string $name, [string $path = null])

Add a new Path header with an address (path) in it.



Tags:

access:  public



Implementation of:
Swift_Mime_HeaderSet::addPathHeader()
Add a new Path header with an address (path) in it.

Parameters:

string   $name  
string   $path  

[ Top ]

method addTextHeader [line 89]

void addTextHeader( string $name, [string $value = null])

Add a new basic text header with $name and $value.



Tags:

access:  public



Implementation of:
Swift_Mime_HeaderSet::addTextHeader()
Add a new basic text header with $name and $value.

Parameters:

string   $name  
string   $value  

[ Top ]

method charsetChanged [line 305]

void charsetChanged( string $charset)

Notify this observer that the entity's charset has changed.



Tags:

access:  public



Implementation of:
Swift_Mime_CharsetObserver::charsetChanged()
Notify this observer that the entity's charset has changed.

Parameters:

string   $charset  

[ Top ]

method defineOrdering [line 283]

void defineOrdering( $sequence)

Define a list of Header names as an array in the correct order.

These Headers will be output in the given order where present.




Tags:

access:  public



Implementation of:
Swift_Mime_HeaderSet::defineOrdering()
Define a list of Header names as an array in the correct order.

Parameters:

array   $sequence  

[ Top ]

method get [line 183]

Swift_Mime_Header get( string $name, [int $index = 0])

Get the header with the given $name.

If multiple headers match, the actual one may be specified by $index. Returns NULL if none present.




Tags:

access:  public



Implementation of:
Swift_Mime_HeaderSet::get()
Get the header with the given $name.

Parameters:

string   $name  
int   $index  

[ Top ]

method getAll [line 207]

array getAll( [string $name = null])

Get all headers with the given $name.



Tags:

access:  public



Implementation of:
Swift_Mime_HeaderSet::getAll()
Get all headers with the given $name.

Parameters:

string   $name  

[ Top ]

method has [line 139]

bool has( string $name, [int $index = 0])

Returns true if at least one header with the given $name exists.

If multiple headers match, the actual one may be specified by $index.




Tags:

access:  public



Implementation of:
Swift_Mime_HeaderSet::has()
Returns true if at least one header with the given $name exists.

Parameters:

string   $name  
int   $index  

[ Top ]

method listAll [line 231]

array listAll( )

Return the name of all Headers.



Tags:

access:  public



Implementation of:
Swift_Mime_HeaderSet::listAll()
Return the name of all Headers.
[ Top ]

method newInstance [line 271]

Swift_Mime_HeaderSet newInstance( )

Create a new instance of this HeaderSet.



Tags:

access:  public



Implementation of:
Swift_Mime_HeaderSet::newInstance()
Create a new instance of this HeaderSet.
[ Top ]

method remove [line 249]

void remove( string $name, [int $index = 0])

Remove the header with the given $name if it's set.

If multiple headers match, the actual one may be specified by $index.




Tags:

access:  public



Implementation of:
Swift_Mime_HeaderSet::remove()
Remove the header with the given $name if it's set.

Parameters:

string   $name  
int   $index  

[ Top ]

method removeAll [line 260]

void removeAll( string $name)

Remove all headers with the given $name.



Tags:

access:  public



Implementation of:
Swift_Mime_HeaderSet::removeAll()
Remove all headers with the given $name.

Parameters:

string   $name  

[ Top ]

method set [line 167]

void set( Swift_Mime_Header $header, [int $index = 0])

Set a header in the HeaderSet.

The header may be a previously fetched header via get() or it may be one that has been created separately.

If $index is specified, the header will be inserted into the set at this offset.




Tags:

access:  public



Implementation of:
Swift_Mime_HeaderSet::set()
Set a header in the HeaderSet.

Parameters:

Swift_Mime_Header   $header  
int   $index  

[ Top ]

method setAlwaysDisplayed [line 295]

void setAlwaysDisplayed( $names)

Set a list of header names which must always be displayed when set.

Usually headers without a field value won't be output unless set here.




Tags:

access:  public



Implementation of:
Swift_Mime_HeaderSet::setAlwaysDisplayed()
Set a list of header names which must always be displayed when set.

Parameters:

array   $names  

[ Top ]

method setCharset [line 52]

void setCharset( string $charset)

Set the charset used by these headers.



Tags:

access:  public


Parameters:

string   $charset  

[ Top ]

method toString [line 315]

string toString( )

Returns a string with a representation of all headers.



Tags:

access:  public



Implementation of:
Swift_Mime_HeaderSet::toString()
Returns a string with a representation of all headers.
[ Top ]

method __clone [line 405]

void __clone( )

Make a deep copy of object.



Tags:

access:  public


[ Top ]

method __toString [line 340]

string __toString( )

Returns a string representation of this object.



Tags:

see:  Swift_Mime_SimpleHeaderSet::toString()
access:  public


[ Top ]


Documentation generated on Sun, 02 Oct 2016 07:54:34 +0000 by phpDocumentor 1.4.3