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.Attachment.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
Attachment
implements
DataSource
10
{
11
public
$file
=
''
;
12
public
$name
=
''
;
13
public
$type
=
''
;
14
public
function
__construct
(
$file
,
$name
=
'att.dat'
,
$type
=
'application/binary'
)
15
{
16
$this->file =
$file
;
17
$this->
name
=
$name
;
18
$this->
type
=
$type
;
19
}
20
public
function
getMimeType
()
21
{
22
return
$this->type
;
23
}
24
public
function
getData
()
25
{
26
return
file_get_contents($this->file);
27
}
28
public
function
getName
()
29
{
30
return
$this->name
;
31
}
32
}
type
$s type
Definition:
dav.php:73
Dcp\Mail\Attachment\getName
getName()
Definition:
Class.Attachment.php:28
name
print $fam getTitle() $fam name
Definition:
cleanFamily.php:133
Dcp\Mail\Attachment\getMimeType
getMimeType()
Definition:
Class.Attachment.php:20
Dcp\Mail\Attachment
Definition:
Class.Attachment.php:9
Dcp\Mail\Attachment\$name
$name
Definition:
Class.Attachment.php:12
Dcp\Mail\Attachment\$type
$type
Definition:
Class.Attachment.php:13
Dcp\Mail\Attachment\__construct
__construct($file, $name= 'att.dat', $type= 'application/binary')
Definition:
Class.Attachment.php:14
Dcp\Mail\Attachment\getData
getData()
Definition:
Class.Attachment.php:24
Dcp\Mail\Attachment\$file
$file
Definition:
Class.Attachment.php:11
Dcp\Mail\DataSource
Definition:
Interface.DataSource.php:9
← centre documentaire
© anakeen