Core
3.2
PHP API documentation
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Pages
Class.Body.php
Go to the documentation of this file.
1
<?php
2
/*
3
* @author Anakeen
4
* @package FDL
5
*/
6
7
namespace
Dcp\Mail;
8
9
class
Body
implements
DataSource
10
{
11
public
$data
=
''
;
12
public
$type
=
''
;
13
public
function
__construct
(
$data
,
$type
)
14
{
15
$this->data =
$data
;
16
$this->
type
=
$type
;
17
}
18
public
function
getMimeType
()
19
{
20
return
$this->type
;
21
}
22
public
function
getData
()
23
{
24
return
$this->data
;
25
}
26
public
function
getName
()
27
{
28
if
($this->
type
==
'text/plain'
) {
29
return
"body.txt"
;
30
} elseif ($this->
type
==
'text/html'
) {
31
return
"body.html"
;
32
}
33
return
"body.bin"
;
34
}
35
}
Dcp\Mail\Body
Definition:
Class.Body.php:9
type
$s type
Definition:
dav.php:73
Dcp\Mail\Body\$data
$data
Definition:
Class.Body.php:11
Dcp\Mail\Body\getMimeType
getMimeType()
Definition:
Class.Body.php:18
Dcp\Mail\Body\getName
getName()
Definition:
Class.Body.php:26
Dcp\Mail\Body\$type
$type
Definition:
Class.Body.php:12
Dcp\Mail\Body\getData
getData()
Definition:
Class.Body.php:22
Dcp\Mail\Body\__construct
__construct($data, $type)
Definition:
Class.Body.php:13
Dcp\Mail\DataSource
Definition:
Interface.DataSource.php:9
← centre documentaire
© anakeen