blueshoes php application framework and cms            core_html
[ class tree: core_html ] [ index: core_html ] [ all elements ]

Class: Bs_FormImage

Source Location: /core/html/form/Bs_FormImage.class.php

Class Overview

Bs_Object
   |
   --Bs_FormElement
      |
      --Bs_FormImage

Form Image Class


Author(s):

Version:

  • 4.3.$Revision: 1.3 $ $Date: 2003/10/29 17:48:39 $

Copyright:

  • blueshoes.org

Variables

Methods


Inherited Variables

Inherited Methods

Class: Bs_FormElement

Bs_FormElement::Bs_FormElement()
Constructor.
Bs_FormElement::getCaption()
Return the caption string (for the current language).
Bs_FormElement::getCaptionForFormOutput()
returns the caption. here in Bs_FormElement it's the same getCaption() but in Bs_FormField which overwrites these methods it makes a difference.
Bs_FormElement::getElement()
Return some html code to display the element on a website in a form.
Bs_FormElement::getElementLayout()
returns the layout string for this element.
Bs_FormElement::getLanguageDependentValue()
returns the value of a [language dependant] [object] var for the current or given language.
Bs_FormElement::getLevel()
returns the level this element belongs to.
Bs_FormElement::getVisibility()
returns how this field/element should be visible and editable to the user.
Bs_FormElement::hasFormObject()
tells if we have a reference to a form object where we can grab some information.
Bs_FormElement::setFormObject()
set a reference to a form object.

Class: Bs_Object

Bs_Object::Bs_Object()
Bs_Object::getErrors()
Basic error handling: Get *all* errors as string array from the global Bs_Error-error stack.
Bs_Object::getLastError()
Basic error handling: Get last error string from the global Bs_Error-error stack.
Bs_Object::getLastErrors()
Basic error handling: Get last errors string array from the global Bs_Error-error stack sinc last call of getLastErrors().
Bs_Object::persist()
Persists this object by serializing it and saving it to a file with unique name.
Bs_Object::setError()
Basic error handling: Push an error string on the global Bs_Error-error stack.
Bs_Object::toHtml()
Dumps the content of this object to a string using PHP's var_dump().
Bs_Object::toString()
Dumps the content of this object to a string using PHP's var_dump().
Bs_Object::unpersist()
Fetches an object that was persisted with persist()

Class Details

[line 24]
Form Image Class

such a tag looks like: <img src="somefile.gif" width="750" height="650" border="0" alt="alt" hspace="2" vspace="3" ismap align="left" usemap="#asdf">

dependencies: Bs_FormElement




Tags:

todo:  add/recode the style stuff.
copyright:  blueshoes.org
pattern:  singleton: (pseudostatic)
access:  public
version:  4.3.$Revision: 1.3 $ $Date: 2003/10/29 17:48:39 $
author:  andrej arn <at blueshoes dot org>


[ Top ]


Class Variables

$align =

[line 46]

one of: left, right, top, middle, bottom, absmiddle, texttop, baseline



Tags:

var:  align

Type:   string


[ Top ]

$alt =

[line 40]

a string or a hash cause it's language dependant.

the alt text.




Tags:

var:  height

Type:   mixed


[ Top ]

$border =

[line 52]

the border tag.



Tags:

var:  border

Type:   int


[ Top ]

$height =

[line 64]

we don't allow things like "50%" here.



Tags:

var:  height

Type:   int


[ Top ]

$hspace =

[line 69]



Tags:

var:  hspace

Type:   int


[ Top ]

$ismap =

[line 87]

the ismap tag. doesn't look like it's married with $usemap.

i don't know these tags though.




Tags:

var:  (default is false)

Type:   bool


[ Top ]

$src =

[line 33]

a string or a hash cause it's language dependant.



Tags:

var:  src

Type:   mixed


[ Top ]

$usemap =

[line 80]

the usemap tag. looks like it has to start with a #.



Tags:

var:  usemap

Type:   string


[ Top ]

$vspace =

[line 74]



Tags:

var:  vspace

Type:   int


[ Top ]

$width =

[line 58]

we don't allow things like "50%" here.



Tags:

var:  width

Type:   int


[ Top ]



Class Methods


constructor Bs_FormImage [line 93]

Bs_FormImage Bs_FormImage( )

Constructor.



[ Top ]

method getElement [line 119]

string &getElement( )

Return some html code to display the element on a website in a form.



Tags:

return:  some html code
access:  public


Overrides Bs_FormElement::getElement() (Return some html code to display the element on a website in a form.)

[ Top ]


Documentation generated on Mon, 29 Dec 2003 21:10:34 +0100 by phpDocumentor 1.2.3