phpBlamework php framework reference documantation |
formsLibrary for work with forms and status. Release: $Name: $ Edit by: $Author: mcbig $ Edit Date: $Date: 2007/01/02 16:13:12 $ Version: $Revision: 1.6 $ Summary
FormsReg
This is array when first form was be generated. It contains records of Form.lsCssId. This is test, when you generate new form, cause more divs with the same Id or more forms with the same name is error. SetCssStyle
Sets buttons css style. It is recommended to use class SetCssClass except the style.
ButtonOkNew
ButtonClose
FormForm class can generate form with some functions like be center on page as normal window. It sends form to server with base values like action and module which can work with data etc. TODOthis class use some hard buttons, so idea is AddButton method to adding buttons, and some another method for adds this hard buttons like as AddOkButton, AddUndoButton etc. with gettext support. Like in Gui Framework. Summary
InfoStatus
Adds Info Status to session StatusBar variable. This variable is returned via PopStatus. ErrStatus
Adds Error Status to session StatusBar variable. This variable is returned via PopStatus. WarStatus
Adds Warning Status to session StatusBar variable. This variable is returned via PopStatus. TemplateSummary
Template2FormBody
Get xhtml body typicaly for Form from file. File must exist in ./forms. Tamplate for this files is template.html. So, when you create some form, you can test to valid this file. |
This is array when first form was be generated.
$GLOBALS['FormsReg']
Class constructor
function Button( $isName, $isLabel = 'Button', $isType = 'button' )
sets buttons css class
function SetCssClass( $isCssClass )
Sets buttons css style.
function SetCssStyle( $isCssStyle )
Sets if the button is hide or not (true | false ).
function SetHide( $ibHide )
Sets onclick javastript button event.
function OnClick( $isOnclick )
Returns button tag.
function Generate()
function ButtonOk( $isLabel )
function ButtonOkNew( $isLabel, $isFormCssId )
function ButtonUndo( $isLabel )
function ButtonClose( $isLabel, $isFormCssId )
function ButtonLink( $isLabel, $isLink )
Returns a tag.
function Generate()
html forms enctype.
public $lsEnctype
forms name and forms div html-id
public $lsCssId
label which is on top of form
public $lsHeader
Action variable which is post with form.
public $lsAction
Module variable which is post with form.
public $lsModule
form has style visibility hidden/visible.
public $lsVisibility
show control icons in top panel of form
public $lbPanel
text of close icon
public $lsClose
text of hide icon
public $lsHide
Creats Form with POST method for editing and sending data to server.
function Form( $isCssId, $isAction, $isModule, $isHeader = '', $ibPanel = true )
Returns form header with hidden inputs action and module.
function Header()
Returns FormButtons block so buttons definitions and end of form.
function End()
Returns full xhtml form with Header isFormBody and End.
function Generate( $isFormBody )
Very very simple form to view message or text in div with Info class.
function Info( $isMessage )
Adds Info Status to session StatusBar variable.
function InfoStatus( $isMessage )
Adds Error Status to session StatusBar variable.
function ErrStatus( $isMessage )
Adds Warning Status to session StatusBar variable.
function WarStatus( $isMessage )
Adds Debug Status to session StatusBar variable.
function DbgStatus( $isMessage )
Get xhtml body typicaly for Form from file.
function Template2FormBody( $isTemplateName )
Return buffer StatusBar from _SESSION and clear it.
function PopStatus()
if true, all php errors, warnings and notices are printing to glass via PopStatus function.
$gbDebug