API Documentation

Mail/Part/File.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Mail
version
$Id: File.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_Mail_Part_File

Description

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Zend_Mail_Part_File

Extends from
Zend_Mail_Part
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Mail
Properties
$_contentPos
$_partPos
$_fh
Methods
__construct
getContent
getSize
getPart

Description

Properties

$_contentPos

 $_contentPos = 'array'

Details

visibility
protected
default
array
final
false
static
false

$_fh

 $_fh = ''

Details

visibility
protected
default
final
false
static
false

$_partPos

 $_partPos = 'array'

Details

visibility
protected
default
array
final
false
static
false

Methods

__construct

__construct( array $params ) :

Public constructor

This handler supports the following params: - file filename or open file handler with message content (required) - startPos start position of message or part in file (default: current position) - endPos end position of message or part in file (default: end of file)

Arguments
$params
array
full message with or without headers
Details
visibility
public
final
false
static
false
throws

getContent

getContent(  $stream = null ) : string

Body of part

If part is multipart the raw content of this part with all sub parts is returned

Arguments
$stream
Output
string
body
Details
visibility
public
final
false
static
false
throws

getPart

getPart( int $num ) : Zend_Mail_Part

Get part of multipart message

Arguments
$num
int
number of part starting with 1 for first part
Output
Zend_Mail_Part
wanted part
Details
visibility
public
final
false
static
false
throws

getSize

getSize( ) : int

Return size of part

Quite simple implemented currently (not decoding). Handle with care.

Output
int
size
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.