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

Class: ImageFiles

Source Location: /filesystem/ImageFiles.class.php

Class Overview

Files
   |
   --ImageFiles

A class to manage image files in a filesystemtree.


Author(s):

Version:

  • 0.1.35

Copyright:

  • Copyright (c) 2005 Daniel Plücken <daniel@debakel.net>

    This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License.

    This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Variables

Methods


Inherited Variables

Inherited Methods

Class: Files

Files::Files()
Constructor
Files::deleteTmp()
Deletes the temporary file of this object.
Files::equals()
Compares the given Files object with this one. If both equal each other it will be returned true, otherwise false. The two file objects will be accounted as equal, if the the filenames and pathes match each other.
Files::get()
Returns the content of this file object. This function is an alias for the function getContent().
Files::getContent()
Returns the content of this file object.
Files::getExtension()
Returns the file extension of the given filename.
Files::getFilesize()
Sets the content of this file object.
Files::getName()
Returns the filename of this file object.
Files::getPath()
Returns the path to the file of this file object.
Files::load()
Loads the content of this file object from the filesystem and sets the content to this object.
Files::save()
Saves the file of this object.
Files::saveAs()
Saves the file of this object with given name.
Files::saveTmp()
Saves the file of this object in a temporary file.
Files::setContent()
Sets the content of this file object.
Files::setFilesize()
Sets the content of this file object.
Files::setParentFolder()
Sets the parent folder of this file object that there is a back reference up to the root of the filesystem tree,

Class Details

[line 47]
A class to manage image files in a filesystemtree.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  0.1.35
copyright:  

Copyright (c) 2005 Daniel Plücken <daniel@debakel.net>

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

license:  GNU Lesser General Public License


[ Top ]


Class Variables

$edit_handle =  null

[line 77]



Tags:

access:  private

Type:   resource


[ Top ]

$handle =  null

[line 71]



Tags:

access:  private

Type:   resource


[ Top ]

$height =  0

[line 65]



Tags:

access:  private

Type:   string


[ Top ]

$jpeg_compression =  60

[line 85]

The jpeg quality from 0 to 100.



Tags:

access:  private

Type:   string


[ Top ]

$kind =  ""

[line 53]



Tags:

access:  public

Type:   string


[ Top ]

$width =  0

[line 59]



Tags:

access:  private

Type:   string


[ Top ]



Class Methods


constructor ImageFiles [line 99]

ImageFiles ImageFiles( string $path_or_width, [string $type_or_height = ""])

Constructor



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.12
since:  0.1.0
access:  public


Parameters:

string   $path_or_width  
string   $type_or_height  

[ Top ]

method createHandle [line 132]

void createHandle( )

Creates a handle to this image to be able to manipulate the image data. The handle will be stored in $this->handle.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
since:  0.1.35
access:  public


[ Top ]

method getContent [line 463]

string getContent( )

Returns the content of this image file object.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.11
since:  0.1.0
access:  public


Overrides Files::getContent() (Returns the content of this file object.)

[ Top ]

method getHeight [line 419]

integer getHeight( )

Returns the height of the image.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.1
since:  0.1.32
access:  public


[ Top ]

method getWidth [line 441]

integer getWidth( )

Returns the width of the image.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.1
since:  0.1.32
access:  public


[ Top ]

method proportionalHeightScale [line 321]

boolean proportionalHeightScale( string $to_height, [string $smooth = true])

Scales the image to the given height and keeps the aspect ratio. Trys to preserve transparency info for GIFs & PNGs.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
author:  Rob <?>
version:  1.22
see:  78379
since:  0.1.3
access:  public


Parameters:

string   $to_height  
string   $smooth  

[ Top ]

method proportionalWidthScale [line 216]

boolean proportionalWidthScale( string $to_width, [string $smooth = true])

Scales the image to the given width and keeps the aspect ratio. Trys to preserve transparency info for GIFs & PNGs.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
author:  Rob <?>
version:  1.34
see:  78379
since:  0.1.0
access:  public


Parameters:

string   $to_width  
string   $smooth  

[ Top ]

method setJPEGCompression [line 195]

void setJPEGCompression( string $int)

Sets the comression quality for jpg between 0 (zero) and 100 (one hundred).

This method is an alias for the method setJPGCompression();




Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
since:  0.1.2
access:  public


Parameters:

string   $int  

[ Top ]

method setJPGCompression [line 169]

void setJPGCompression( string $int)

Sets the comression quality for jpg between 0 (zero) and 100 (one hundred).



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
since:  0.1.2
access:  public


Parameters:

string   $int  

[ Top ]


Documentation generated on Thu, 05 Jun 2008 19:13:32 +0200 by phpDocumentor 1.4.1