[ Index ]
 

Code source de PRADO 3.0.6

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/framework/Web/UI/ -> TForm.php (sommaire)

TForm class file

Author: Qiang Xue <qiang.xue@gmail.com>
Copyright: Copyright © 2005 PradoSoft
License: http://www.pradosoft.com/license/
Version: $Id: TForm.php 1397 2006-09-07 07:55:53Z wei $
Poids: 146 lignes (4 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

TForm:: (10 méthodes):
  onInit()
  addAttributesToRender()
  render()
  getDefaultButton()
  setDefaultButton()
  getMethod()
  setMethod()
  getEnctype()
  setEnctype()
  getName()


Classe: TForm  - X-Ref

TForm class

TForm displays an HTML form. Besides regular body content,
it displays hidden fields, javascript blocks and files that are registered
through {@link TClientScriptManager}.

A TForm is required for a page that needs postback.
Each page can contain at most one TForm. If multiple HTML forms are needed,
please use regular HTML form tags for those forms that post to different
URLs.

onInit($param)   X-Ref
Registers the form with the page.

param: mixed event parameter

addAttributesToRender($writer)   X-Ref
Adds form specific attributes to renderer.

param: THtmlWriter writer

render($writer)   X-Ref
Renders the form.

param: THtmlWriter writer

getDefaultButton()   X-Ref

return: string id path to the default button control.

setDefaultButton($value)   X-Ref
Sets a button to be default one in a form.
A default button will be clicked if a user presses 'Enter' key within
the form.

param: string id path to the default button control.

getMethod()   X-Ref

return: string form submission method. Defaults to 'post'.

setMethod($value)   X-Ref

param: string form submission method. Valid values include 'post' and 'get'.

getEnctype()   X-Ref

return: string the encoding type a browser uses to post data back to the server

setEnctype($value)   X-Ref

param: string the encoding type a browser uses to post data back to the server.

getName()   X-Ref

return: string form name, which is equal to {@link getUniqueID UniqueID}.



Généré le : Sun Feb 25 21:07:04 2007 par Balluche grâce à PHPXref 0.7