Class: Images
Source Location: /myphp-1.9/myphp-1.9-base/html/util/Images.php
Class Images
Class Overview
|
Returns a complete Image as HTML
- Usage:
- $images = new Images($src,$width,$height,$alt,$class,$border,$aux);
- print $images->getHtml();
- Or
- Images::display($src,$width,$height,$alt,$class,$border,$aux);
Located in /myphp-1.9/myphp-1.9-base/html/util/Images.php [line 32]
Object
|
--Html
|
--Image
|
--Images
|
Methods
|
Inherited Properties, Constants, and Methods
Method Summary
| String |
setImage() |
Get the complete html for an image |
Methods
Images Images(
[String
$name = ''], [String
$width = ''], [String
$height = ''], [String
$alt = ''], [String
$class = ''], [String
$border = ''], [String
$aux = '']
)
|
|
Constructor
Parameters:
|
String |
$name: |
The name of an image i.e. 'logo' |
|
String |
$width: |
The width |
|
String |
$height: |
The height |
|
String |
$alt: |
The alt text |
|
String |
$class: |
The css class for the image |
|
String |
$border: |
The border of an image |
|
String |
$aux: |
The new line indicator (nl) |
void display(
[String
$name = ''], [String
$width = ''], [String
$height = ''], [String
$alt = ''], [String
$class = ''], [String
$border = ''], [String
$aux = '']
)
|
|
Display html
- Usage:
- Images::display($src,$width,$height,$alt,$class,$border,$aux);
Parameters:
|
String |
$name: |
The name of an image i.e. 'logo' |
|
String |
$width: |
The width |
|
String |
$height: |
The height |
|
String |
$alt: |
The alt text |
|
String |
$class: |
The css class for the image |
|
String |
$border: |
The border of an image |
|
String |
$aux: |
The new line indicator (nl) |
API Tags:
Redefinition of:
- Image::display()
- Display html
String setImage(
String
$name
)
|
|
Get the complete html for an image
Parameters:
|
String |
$name: |
The name of an image i.e. 'logo' |
API Tags:
|
|