|
|
|
File: C:/usr/local/lib/php/blueshoes-4.2/core/html/form/Bs_FormFieldButton.class.php
BlueShoes Application Framework - Form
Bs_FormFieldButton
Bs_Object | +-- Bs_FormElement | +-- Bs_FormField | +-- Bs_FormFieldBtn | +-- Bs_FormFieldButton
BUTTON Form Field Class.
|
public class Bs_FormFieldButton extends Bs_FormFieldBtn
BUTTON Form Field Class.
example tag 1:<input name="buttonName" type="button" value="click here">what's special about this tag?- value => that's the caption.note: the netscape only params 'width' and 'height' are not implemented here,i recommend using styles.example tag 2:<button name="fieldname" value="value" type="submit">some html code</button>what's special about this tag?- it starts with <button>, has html in the middle, and ends with </button>.- the html part can be everything, including images. (see class var $htmlContent)- it's supposed to be html4, supported by ie4+, but not by ns4 :(- ie4 submits the html part, while ie5+ submits the value.- type (see class var)dependencies: Bs_FormFieldBtn
| 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 button on a website in a form.Warning: documentation is missing. |
| void |
Bs_FormFieldButton()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 |
$htmlContentthe html content inside <button></button>, if any. |
| string |
$typethe button type, how a push on the button should behave. one of: |
|
|
|
Public Method Details |
&getField |
|
public string &getField( )
|
| |
Return some html code to display the button on a website in a form.
overwrites (extends) parent method.
Warning: documentation is missing.
|
| Returns |
string some html code |
|
Bs_FormFieldButton |
|
public void Bs_FormFieldButton( )
|
| |
Warning: documentation is missing.
|
| Returns |
void |
|
|
Private Field Details |
$htmlContent |
|
private mixed $htmlContent
>><<
the html content inside <button></button>, if any.
usually a string, can be a hash because it's language dependant.it's supposed to be html4, supported by ie4+, but not by ns4 :(
|
|
$type |
|
private string $type
>>'submit'<<
the button type, how a push on the button should behave. one of:
submit => default in html 4.0reset => --button => default in iebecause of this difference, "submit" is the default for this class var.
|
|
|
Private Constant Details |
BS_FORMFIELDBUTTON_VERSION
define( BS_FORMFIELDBUTTON_VERSION, >>4.0.$x$<< )
Case: default: case sensitive
|
|
|
|
|
|
| PHPDoc 1.0beta |