XOOPS RMCommon Utilities
2.1.8.91RC
Main Page
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Image.php
Go to the documentation of this file.
1
<?php
2
3
/*
4
* This file is part of SwiftMailer.
5
* (c) 2004-2009 Chris Corbyn
6
*
7
* For the full copyright and license information, please view the LICENSE
8
* file that was distributed with this source code.
9
*/
10
11
//@require 'Swift/Image.php';
12
//@require 'Swift/ByteStream/FileByteStream.php';
13
20
class
Swift_Image
extends
Swift_EmbeddedFile
21
{
22
30
public
function
__construct
(
$data
= null, $filename = null,
31
$contentType = null)
32
{
33
parent::__construct
(
$data
, $filename, $contentType);
34
}
35
43
public
static
function
newInstance
(
$data
= null, $filename = null,
44
$contentType = null)
45
{
46
return
new
self
(
$data
, $filename, $contentType);
47
}
48
54
public
static
function
fromPath
(
$path
)
55
{
56
$image
= self::newInstance()->setFile(
57
new
Swift_ByteStream_FileByteStream
(
$path
)
58
);
59
return
$image
;
60
}
61
62
}
L:
XOOPS_Allure
SVN_XOOPS2
RMC
rmcommon
trunk
rmcommon
class
swift
classes
Swift
Image.php
Generated on Sun Mar 17 2013 20:41:05 for XOOPS RMCommon Utilities by
1.8.3.1