Overview

Packages

  • Geolib

Classes

  • Geo
  • GeoBody
  • GeoCell
  • GeoDebug
  • GeoHead
  • GeoHtml
  • GeoImg
  • GeoLink
  • GeoList
  • GeoSelect
  • GeoTable
  • GeoTag

Functions

  • b
  • div
  • geoAbsLink
  • geoAnchor
  • geoBody
  • geoButton
  • geoCell
  • geoCheckbox
  • geoDb
  • geoEnd
  • geoFieldSet
  • geoForm
  • geoHead
  • geoHidden
  • geoHtml
  • geoif
  • geoIList
  • geoImg
  • geoImgSubmit
  • geoInput
  • geoIsMultiArr
  • geoItem
  • geoJSLink
  • geoLabel
  • geoLegend
  • geolib_autoloader
  • geoLink
  • geoList
  • geoMultiArr
  • geoNoScript
  • geoPassword
  • geoPre
  • geoRadio
  • geoRadios
  • geoScript
  • geoSelect
  • geoStart
  • geoSubmit
  • geoTable
  • geoTabs
  • geoTag
  • geoText
  • geoTextArea
  • geoTrace
  • geoUpload
  • geovar
  • h1
  • h2
  • h3
  • h4
  • i
  • idiv
  • ispan
  • itag
  • p
  • span
  • Overview
  • Package
  • Class

Class GeoImg

Geo - Class to create HTML image tags, or an image in a link

GeoTag
Extended by GeoImg
Package: Geolib
Category: Html_Tag
License: Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html
Author: Peter Pitchford peter@geotonics.com
Version: Release: .1
Since: Class available since Release .1
Link: http://geotonics.com/#geolib
Located at classes/GeoImg.php
Methods summary
public
# __construct( string $src = null, string $alt = null, string $href = null, string $title = null, string $target = null, string $host = null, string $id = null, string $class = null, string $style = null, array $atts = null, string $rel = null )

Constructor for GeoImg object

Constructor for GeoImg object

Parameters

$src
Image src
$alt
Image alt
$href
Link href
$title
Link title
$target
Link target
$host
Image host
$id
Image id
$class
Image class
$style
Image style
$atts
Any other Image attributes
$rel
Link rel

Overrides

GeoTag::__construct()
public
# setHost( string $host = null )

Set host for image src

Set host for image src

Parameters

$host
host of image src (host is optional)
public
# setLink( string $href, string $title = null, string $target = null, string $rel = null )

Add a link to the image.

Add a link to the image.

Parameters

$href
href attribute of the link
$title
title of the link
$target
target of the link
$rel
rel of the link
public string
# tag( string $src = null, string $alt = null )

Returns html image tag

Returns html image tag

Parameters

$src
Path to image
$alt
Alternative text

Returns

string
HTML image tag
Methods inherited from GeoTag
baseTag(), init(), setAtt(), setText()
Properties inherited from GeoTag
$atts, $text
API documentation generated by ApiGen