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

Class: HTMLImage

Source Location: /html/HTMLImage.class.php

Class Overview

ABSTObject
   |
   --ABSTHTMLTag
      |
      --ABSTDimensionObject
         |
         --ABSTSourceObject
            |
            --HTMLImage

Creating HTML-Images


Author(s):

Version:

  • 0.1.51

Copyright:

  • Copyright (c) 2004 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: ABSTSourceObject

ABSTSourceObject::ABSTSourceObject()
The Constructor let the script die, cause this is an abstract class!
ABSTSourceObject::setSRC()
Sets the source of this image.

Class: ABSTDimensionObject

ABSTDimensionObject::ABSTDimensionObject()
The Constructor let the script die, cause this is an abstract class!
ABSTDimensionObject::setHeight()
Sets the height-attribute of this object.
ABSTDimensionObject::setWidth()
Sets the width-attribute of this object.

Class: ABSTHTMLTag

ABSTHTMLTag::getId()
Returns the value of this tag's "id"-attribute.
ABSTHTMLTag::getName()
Returns the value of this tag's "name"-attribute.
ABSTHTMLTag::HTMLTag()
The Constructor let the script die, cause this is an abstract class!
ABSTHTMLTag::idExists()
Stores all used ids and makes sure that every id in the document is unique. It should called in every get method of classes in the packages forms and html.
ABSTHTMLTag::setAttributes()
This method allows to set the attributes of the tag that are not handled by other methods.
ABSTHTMLTag::setFreeStyle()
Set the value of style definitions that are not handled by implemented methods.
ABSTHTMLTag::setId()
Stores the value of this item's "id"-attribute.
ABSTHTMLTag::setName()
Stores the value of this tag's "name"-attribute.
ABSTHTMLTag::setNoFormat()
Stores that the HTML-elements should not format by "\r\n" in the source.
ABSTHTMLTag::setOnBlur()
Sets the value of the blur-attribute of this html-tag.
ABSTHTMLTag::setOnClick()
Sets the value of the click-attribute of this html-tag.
ABSTHTMLTag::setOnFocus()
Sets the value of the focus-attribute of this html-tag.
ABSTHTMLTag::setOnMouseMove()
Sets the value of the mousemove-attribute of this html-tag.
ABSTHTMLTag::setOnMouseOut()
Sets the value of the mouseout-attribute of this html-tag.
ABSTHTMLTag::setOnMouseOver()
Sets the value of the mouseover-attribute of this html-tag.
ABSTHTMLTag::setOnMouseUp()
Sets the value of the mouseup-attribute of this html-tag.
ABSTHTMLTag::setStyle()
Set the value of the class-attribute of this tag.

Class: ABSTObject

ABSTObject::printComplexData()
Prints out the more complex data by the given array.
ABSTObject::printPrimitiveData()
Prints out the primitive data by the given arrays.
ABSTObject::printStructure()
Prints out the Structure of this Object.
ABSTObject::same()
Checks whether the passed object reference points to this object.
ABSTObject::sameReferences()
Compares two references whether they points to the same object

Class Details

[line 48]
Creating HTML-Images



Tags:

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

Copyright (c) 2004 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

$alt =

[line 56]

The alt-attribute of the image-tag.



Tags:

access:  public

Type:   string


[ Top ]

$border =

[line 77]

Stores the value of the border-attribute of this image.



Tags:

var:  access public

Type:   integer


[ Top ]

$gallery_img =  false

[line 84]

Stores whether the image should be a gallery image.



Tags:

var:  access public

Type:   boolean


[ Top ]

$over_src_set =  false

[line 70]

The path of the source to the image on mouseover.



Tags:

access:  public

Type:   boolean


[ Top ]

$title =

[line 63]

The title-attribute of the image-tag.



Tags:

access:  public

Type:   string


[ Top ]



Class Methods


static method getJS2swapImages [line 296]

static string getJS2swapImages( [boolean $withJSdeclaration = false])

Returns a javascript-function to swap a given image to given source.



Tags:

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


Parameters:

boolean   $withJSdeclaration  

[ Top ]

constructor HTMLImage [line 104]

void HTMLImage( string $src, [integer $width = 0], [integer $height = 0], [ $border = 0], [boolean $validate_path = true])

Constructor

Note: you can set the value of $validate_path for last parameter; you don't need to give values of $width, $height or $border if they have no value!




Tags:

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


Parameters:

string   $src   Source of the image.
integer   $width  
integer   $height  
boolean   $validate_path  
   $border  

[ Top ]

method get [line 371]

string get( )

Returns a generated string based on the attributes of this HTML-Object.



Tags:

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


[ Top ]

method setAlt [line 251]

void setAlt( [string $string = ""])

Sets the alt-attribute of this image.



Tags:

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


Parameters:

string   $string  

[ Top ]

method setBorder [line 227]

void setBorder( [integer $int = 0])

Sets the border of this image.



Tags:

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


Parameters:

integer   $int  

[ Top ]

method setOverSRC [line 170]

void setOverSRC( string $string)

Sets the source of this image on mouseover.



Tags:

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


Parameters:

string   $string  

[ Top ]

method setSRC [line 136]

void setSRC( string $string, [boolean $validate_path = true])

Sets the source of this image.



Tags:

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


Overrides ABSTSourceObject::setSRC() (Sets the source of this image.)

Parameters:

string   $string  
boolean   $validate_path  

[ Top ]

method setTitle [line 270]

void setTitle( [string $string = ""], [string $invoke_from_alt = false])

Sets the title-attribute of this image.



Tags:

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


Parameters:

string   $string  
string   $invoke_from_alt  

[ Top ]


Documentation generated on Thu, 05 Jun 2008 19:12:29 +0200 by phpDocumentor 1.4.1