|
|
|
File: C:/usr/local/lib/php/blueshoes-4.2/core/html/form/Bs_FormFieldImage.class.php
BlueShoes Application Framework - Form
Bs_FormFieldImage
Bs_Object | +-- Bs_FormElement | +-- Bs_FormField | +-- Bs_FormFieldImage
IMAGE Form Field Class.
|
public class Bs_FormFieldImage extends Bs_FormField
IMAGE Form Field Class.
an image form element submits the form to the server just like a submit element does.example tag:<input type="image" name="fieldname" value="" src="the/source.jpg" alt="alt text" align="left"usemap="yourMap" width="20" height="20" hspace="5" vspace="5" border="2">what's special about this tag? (for details see class vars.)all the properties:- src - usemap - border- alt - width - hspace- align - height - vspaceno dependencies here.
| Authors | andrej arn <andrej@arn.li> |
| Version | 4.0.$id$ |
| Copyright | blueshoes.org |
|
| |
|
Methods inherited from Bs_FormField |
| bs_formfield, &getelement, getfield, addenforcecheckbox, isexplodable, getadvancedstyle, getadvancedstylehelper, setexplode, getlabel, inputmanipulate, inputvalidate, validatemust, validateonlyoneof, validateonlyif, validateminlength, validatemaxlength, validatemuststartwith, validatenotstartwith, validatemustendwith, validatenotendwith, validatemustcontain, validatenotcontain, validateequalto, validatenotequalto, validatedatatype, validateregularexpression, validateadditionalcheck, validatemustbeunique, getvisibility, getonenterbehavior, getonentercode, applyonenterbehavior, shouldpersist, getdbdatatype, getdbfieldname, _getmaxlength, _gettagstringevents, getvalue, _gettagstringvalue, _gettagstringstyles, _gettagstringadditionaltags, getcaption, getcaptionforformoutput, geterror, gethelp, _highlightaccesskey, _getaccesskey, getfieldashidden, _getfieldnameforhtml, hasjavascript, ismust, _anyifcase, _markasused, _getbsdatainfonumber, isfilledin, _evalwrap, unpersisttrigger, geterrormessage, &serialize, unserialize, &encrypt, &decrypt, initfrompost |
|
|
|
Methods inherited from Bs_Object |
| isex, isexception, tostring, tohtml, persist, unpersist, bs_object, bbsetoutput, bbawake, bbisawake, bbxmsg, bbxfunctionstart, bbxfunctionend, bbxecho, bbxvar, bbxvardump, bbforcetrace, bbbufferstart, bbbufferget, bbbufferendflush, bbbufferendclean |
|
Public Method Summary |
| string |
&getField()Return some html code to display the field on a website in a form. |
| void |
Bs_FormFieldImage()Warning: documentation is missing. |
|
Fields inherited from Bs_FormField |
| $_bs_string, $_bs_array, $_bs_htmlutil, $_bs_date, $fieldtype, $caption, $defaulterrormessage, $errormessage, $errortype, $level, $editability, $accessrights, $visibility, $isused, $valuedefault, $valuedefaulttype, $valuereceived, $valuedisplay, $valueinternal, $savetodb, $dbfieldname, $dbdatatype, $dbnotnull, $dbprimarykey, $dbkey, $dbindexfulltext, $dbautoincrement, $dbunique, $dbforeignkey, $dbattributes, $explodeeval, $_explodearray, $direction, $styles, $advancedstyles, $events, $onenter, $additionaltags, $bsdatatype, $bsdatainfo, $bsdatamanipulation, $bsdatamanipvar, $enforce, $_must, $must, $mustif, $mustoneof, $mustoneofif, $onlyoneof, $onlyif, $onlyoneofif, $minlength, $maxlength, $muststartwith, $notstartwith, $mustendwith, $notendwith, $mustcontain, $notcontain, $equalto, $notequalto, $mustbeunique, $regularexpression, $additionalcheck, $trim, $remove, $removei, $replace, $replacei, $case, $codepostreceive, $codepostload, $this, $charsrule |
|
Fields inherited from Bs_FormElement |
| $persister, $persisterid, $_form, $name, $elementtype, $formid, $container, $orderid, $elementstringformat, $persistervarsettings, $this |
|
Private Field Summary |
| mixed |
$srcthe source (path) to the image. |
| mixed |
$altthe alt text to appear when you move your mouse over the image and wait for a moment. |
| string |
$alignhow to align the image. one of ... |
| string |
$usemapthe name of a client side image map you would like to use. |
| mixed |
$widthwidth of the image. if not given, no width is sent and the browser |
| mixed |
$heightheight of the image. if not given, no height is sent and the browser |
| int |
$borderborder thickness around the image. |
| int |
$hspacehorizontal space |
| int |
$vspacevertical space |
|
|
|
Public Method Details |
&getField |
|
public string &getField( )
|
| |
Return some html code to display the field on a website in a form.
overwrites parent method.
|
| Returns |
string some html code |
|
Bs_FormFieldImage |
|
public void Bs_FormFieldImage( )
|
| |
Warning: documentation is missing.
|
| Returns |
void |
|
|
Private Field Details |
$src |
|
private mixed $src
>><<
the source (path) to the image.
usually a string, can be a hash because it's language dependant.
|
|
$alt |
|
private mixed $alt
>><<
the alt text to appear when you move your mouse over the image and wait for a moment.
usually a string, can be a hash because it's language dependant.
|
|
$align |
|
private string $align
>><<
how to align the image. one of ...
now i'm not sure what the correct list is. homesite 4.5.2 offers 2 different lists,one is: "left right top middle bottom" and the other has the same options plus these:"texttop absmiddle baseline absbottom" so if you use these settings you better knowwhat you're doing.
|
|
$usemap |
|
private string $usemap
>><<
the name of a client side image map you would like to use.
|
|
$width |
|
private mixed $width
>><<
width of the image. if not given, no width is sent and the browser
uses the original width of the image.usually an int, can be a hash because it's language dependant.
|
|
$height |
|
private mixed $height
>><<
height of the image. if not given, no height is sent and the browser
uses the original height of the image.usually an int, can be a hash because it's language dependant.
|
|
$border |
|
private int $border
>><<
border thickness around the image.
|
|
$hspace |
|
private int $hspace
>><<
horizontal space
|
|
$vspace |
|
private int $vspace
>><<
vertical space
|
|
|
Private Constant Details |
BS_FORMFIELDIMAGE_VERSION
define( BS_FORMFIELDIMAGE_VERSION, >>4.0.$x$<< )
Case: default: case sensitive
|
|
|
|
|
|
| PHPDoc 1.0beta |