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

Class: DImageAbstract

Source Location: /Files/Pictures/DImageAbstract.php

Class Overview

DObject
   |
   --DImageAbstract

Base image file


Author(s):

Variables

Methods


Child classes:

DImageGD
Base image file based on GD This class include the main image functions for transformation and image file handling.
DImageMagick
Base image file based on ImageMagick This class include the main image functions for transformation and image file handling.

Inherited Constants

Inherited Variables

Inherited Methods

Class: DObject

DObject::__construct()
Constructor
DObject::debug()
Debig
DObject::getClassMembers()
Gets member variables of the instance
DObject::getClassMemberType()
Gets class member type
DObject::getClassMethods()
Gets classes of the class
DObject::getClassName()
Gets class name
DObject::PHPSerialize()
Gets serialized string of the class
DObject::trace()
Trace
DObject::__destruct()
Descructor
DObject::__toString()
Returns String equivalent of the object.

Class Details

[line 19]
Base image file

Abstract class that all picture classes will extend




Tags:

abstract:  


[ Top ]


Class Variables

$_convertOptions = array()

[line 49]

Convert options



Tags:

access:  protected

Type:   array


[ Top ]

$_error =  ""

[line 43]

Error string



Tags:

access:  protected

Type:   string


[ Top ]

$_fileData =  ""

[line 25]

Raw data image



Tags:

access:  protected

Type:   string


[ Top ]

$_fileName =  ""

[line 31]

File name



Tags:

access:  protected

Type:   string


[ Top ]

$_parameters = array()

[line 37]

Parameters of the picture



Tags:

access:  protected

Type:   array


[ Top ]

$_tempDir =  ""

[line 55]

Path to temp dir



Tags:

access:  protected

Type:   string


[ Top ]



Class Methods


constructor __construct [line 61]

DImageAbstract __construct( )

Class constructor



Tags:

access:  public


Overridden in child classes as:

DImageGD::__construct()
Class constructor
DImageMagick::__construct()
Class constructor

Overrides DObject::__construct() (Constructor)

[ Top ]

method delFromDisk [line 167]

void delFromDisk( )

Removes the image



Tags:

access:  public


[ Top ]

method getFileData [line 115]

string getFileData( )

Returns raw data



Tags:

access:  public


[ Top ]

method getFileName [line 128]

string getFileName( )

Returns file name



Tags:

access:  public


[ Top ]

method getParameter [line 147]

mixed getParameter( string $key)

Returs parameter value



Tags:

access:  public


Parameters:

string   $key  

[ Top ]

method getRowParams [line 137]

array getRowParams( )

Returns row image parameters



Tags:

access:  public


[ Top ]

method saveToDisk [line 102]

boolean saveToDisk( string $fileName)

Saves the image to drive



Tags:

access:  public


Parameters:

string   $fileName   Destionation name

[ Top ]

method setConvertOptions [line 244]

void setConvertOptions( array $options)

Sets convert options and makes simple validation ot the data



Tags:

access:  public


Parameters:

array   $options  

[ Top ]

method setFileData [line 82]

void setFileData( string $data)

Sets the file raw data



Tags:

access:  public


Parameters:

string   $data  

[ Top ]

method setFileName [line 92]

void setFileName( string $fileName)

Sets the file name



Tags:

access:  public


Parameters:

string   $fileName  

[ Top ]

method setMode [line 70]

void setMode( string $mode)

Sets image transformation mode



Tags:

access:  public


Parameters:

string   $mode  

[ Top ]

method setParameter [line 158]

void setParameter( string $key, string $value)

Sets parameter value



Tags:

access:  public


Parameters:

string   $key  
string   $value  

[ Top ]

method _calcPositionH [line 260]

int _calcPositionH( integer $xWatermark)

Calculates Horizontal offset for the watermark



Tags:

author:  Emilio Rodriguez <emiliort@gmail.com>
access:  protected


Parameters:

integer   $xWatermark  

[ Top ]

method _calcPositionV [line 291]

int _calcPositionV( $yWatermark $yWatermark)

Calculates Vertical offsetfot the watermark



Tags:

author:  Emilio Rodriguez <emiliort@gmail.com>
access:  protected


Parameters:

$yWatermark   $yWatermark  

[ Top ]

method _handleResult [line 221]

boolean _handleResult( string $result, string $source, string $destination)

Handles the result and returns the result status



Tags:

access:  protected


Overridden in child classes as:

DImageGD::_handleResult()
Handles the result and returns the result status

Parameters:

string   $result   The result of the convert action
string   $source   The name of the source file
string   $destination   The name of the destination file

[ Top ]

method _makeDestination [line 198]

string _makeDestination( )

Makes the destination and temporary files if needed



Tags:

access:  protected


[ Top ]

method _makeSource [line 176]

string _makeSource( )

Makes the source variable and temporary files if needed



Tags:

access:  protected


Overridden in child classes as:

DImageGD::_makeSource()
Makes the source variable and temporary files if needed

[ Top ]


Documentation generated on Sat, 17 Apr 2010 22:06:20 +0300 by phpDocumentor 1.4.3