PHP Class ExampleForm, qcodo

Inheritance: extends QForm
Afficher le fichier Open project: qcodo/qcodo Class Usage Examples

Protected Properties

Свойство Type Description
$btnAdd
$btnAlert
$btnButton
$btnCalendar
$btnCalendarPopup
$btnCancel
$btnConfirm
$btnDatePicker
$btnDateTimePicker
$btnDateTimeTextBox
$btnDeleteLeft
$btnFocus
$btnForceUpdate1
$btnForceUpdate2
$btnJavaScript
$btnMoveLeft
$btnMoveRight
$btnNew
$btnSave
$btnSave1
$btnSave2
$btnSelect
$btnToggleDisplay
$btnToggleEnable
$btnUpdate
$calCalendar
$calCalendarPopup
$chkScaleCanvasDown
$colFirstName
$colId DataGrid Columns
$colLastName
$ctlCustom
$dtgPerson
$dtgPersons Declare the DataGrid
$dtpDatePicker
$dtpDateTimePicker
$dtxCalendar
$dtxDateTimeTextBox
$flaSample
$imgSample
$intEditPersonId This value is either a Person->Id, "null" (if nothing is being edited), or "-1" (if creating a new Person)
$lblArray
$lblMessage Local declarations of our Qcontrols
$lblResponse
$lblResult
$lblSelected
$lblTimestamp1
$lblTimestamp2
$lstFont
$lstListbox
$objPerson1 Local Person Objects
$objPerson2
$objPersonReference Get the Current Person Object (just for reference)
$pnlCode
$pnlHover
$pnlLeft through using GetChildControls() and AutoRenderChildren
$pnlPanel through using AutoRenderChildren
$pnlRight
$pxyExample RenderAsHref() and RenderAsEvents() on it.
$strMessage For this example, show how the panel can display this strMessage
$tnvExample
$txtArray
$txtDisplay
$txtEnable
$txtFirstName
$txtFirstName1
$txtFirstName2
$txtFocus
$txtHeight
$txtItem
$txtLastName
$txtLastName1
$txtLastName2
$txtMessage1
$txtMessage2
$txtWidth

Méthodes publiques

Méthode Description
DisplayFullName ( Person $objPerson ) note that DisplayFullName is a PUBLIC function -- because it will be called by the QDataGrid class.
EditColumn_Render ( Person $objPerson ) should be disabled. Otherwise, show the edit button normally.
FirstNameColumn_Render ( Person $objPerson ) show the textbox. Otherwise, display the contents as is.
LastNameColumn_Render ( Person $objPerson ) show the textbox. Otherwise, display the contents as is.
chkSelected_Render ( Person $objPerson ) This method (declared as public) will help with the checkbox column rendering

Méthodes protégées

Méthode Description
AddListItem ( )
Form_Create ( )
Form_Load ( )
Form_PreRender ( )
Form_Validate ( ) Let's ensure that a width or a height value is specified -- just so that we don't get people rendering really large versions of the image
MoveTextbox ( $strFormId, $strControlId, $strParameter ) move one of the textboxes from one panel to the other
SavePerson ( $strFormId, $strControlId, $strParameter ) The SavePerson Event Handler
SavePersonForceUpdate ( $strFormId, $strControlId, $strParameter ) The SavePersonForceUpdate Event handler
TextItem_Cancel ( $strFormId, $strControlId, $strParameter )
TextItem_Save ( $strFormId, $strControlId, $strParameter )
btnButton_Click ( $strFormId, $strControlId, $strParameter ) The "btnButton_Click" Event handler
btnCancel_Click ( $strFormId, $strControlId, $strParameter ) Handle the action for the Cancel button being clicked.
btnConfirm_Click ( )
btnDeleteLeft_Click ( $strFormId, $strControlId, $strParameter ) Handle the action to delete a control from pnlLeft
btnEdit_Click ( $strFormId, $strControlId, $strParameter ) we are editing.
btnNew_Click ( $strFormId, $strControlId, $strParameter ) contents of the Firstname and LastName textboxes.
btnSave_Click ( $strFormId, $strControlId, $strParameter ) Handle the action for the Save button being clicked.
btnUpdate_Click ( $strFormId, $strControlId, $strParameter )
chkSelected_Click ( $strFormId, $strControlId, $strParameter ) This btnCopy_Click action will actually perform the copy of the person row being copied
dtgPersons_Bind ( )
lblArray_Click ( $strFormId, $strControlId, $strParameter )
lblMessage_Click ( $strFormId, $strControlId, $strParameter )
lstFont_Change ( $strFormId, $strControlId, $strParameter )
lstListbox_Change ( )
pxyExample_Click ( $strFormId, $strControlId, $strParameter ) Notice how the optional "action parameter" we used in the RenderAsHref() or RenderEvents() call gets passed in as $strParameter here.
tnvExample_AddItems ( $strDirectory, $objParentItem = null )
tnvExample_Change ( $strFormId, $strControlId, $strParameter )
txtItem_KeyPress ( )

Method Details

AddListItem() protected méthode

protected AddListItem ( )

DisplayFullName() public méthode

note that DisplayFullName is a PUBLIC function -- because it will be called by the QDataGrid class.
public DisplayFullName ( Person $objPerson )
$objPerson Person

EditColumn_Render() public méthode

should be disabled. Otherwise, show the edit button normally.
public EditColumn_Render ( Person $objPerson )
$objPerson Person

FirstNameColumn_Render() public méthode

show the textbox. Otherwise, display the contents as is.
public FirstNameColumn_Render ( Person $objPerson )
$objPerson Person

Form_Create() protected méthode

protected Form_Create ( )

Form_Load() protected méthode

protected Form_Load ( )

Form_PreRender() protected méthode

protected Form_PreRender ( )

Form_Validate() protected méthode

Let's ensure that a width or a height value is specified -- just so that we don't get people rendering really large versions of the image
protected Form_Validate ( )

LastNameColumn_Render() public méthode

show the textbox. Otherwise, display the contents as is.
public LastNameColumn_Render ( Person $objPerson )
$objPerson Person

MoveTextbox() protected méthode

move one of the textboxes from one panel to the other
protected MoveTextbox ( $strFormId, $strControlId, $strParameter )

SavePerson() protected méthode

The SavePerson Event Handler
protected SavePerson ( $strFormId, $strControlId, $strParameter )

SavePersonForceUpdate() protected méthode

The SavePersonForceUpdate Event handler
protected SavePersonForceUpdate ( $strFormId, $strControlId, $strParameter )

TextItem_Cancel() protected méthode

protected TextItem_Cancel ( $strFormId, $strControlId, $strParameter )

TextItem_Save() protected méthode

protected TextItem_Save ( $strFormId, $strControlId, $strParameter )

btnButton_Click() protected méthode

The "btnButton_Click" Event handler
protected btnButton_Click ( $strFormId, $strControlId, $strParameter )

btnCancel_Click() protected méthode

Handle the action for the Cancel button being clicked.
protected btnCancel_Click ( $strFormId, $strControlId, $strParameter )

btnConfirm_Click() protected méthode

protected btnConfirm_Click ( )

btnDeleteLeft_Click() protected méthode

Handle the action to delete a control from pnlLeft
protected btnDeleteLeft_Click ( $strFormId, $strControlId, $strParameter )

btnEdit_Click() protected méthode

we are editing.
protected btnEdit_Click ( $strFormId, $strControlId, $strParameter )

btnNew_Click() protected méthode

contents of the Firstname and LastName textboxes.
protected btnNew_Click ( $strFormId, $strControlId, $strParameter )

btnSave_Click() protected méthode

Handle the action for the Save button being clicked.
protected btnSave_Click ( $strFormId, $strControlId, $strParameter )

btnUpdate_Click() protected méthode

protected btnUpdate_Click ( $strFormId, $strControlId, $strParameter )

chkSelected_Click() protected méthode

This btnCopy_Click action will actually perform the copy of the person row being copied
protected chkSelected_Click ( $strFormId, $strControlId, $strParameter )

chkSelected_Render() public méthode

This method (declared as public) will help with the checkbox column rendering
public chkSelected_Render ( Person $objPerson )
$objPerson Person

dtgPersons_Bind() protected méthode

protected dtgPersons_Bind ( )

lblArray_Click() protected méthode

protected lblArray_Click ( $strFormId, $strControlId, $strParameter )

lblMessage_Click() protected méthode

protected lblMessage_Click ( $strFormId, $strControlId, $strParameter )

lstFont_Change() protected méthode

protected lstFont_Change ( $strFormId, $strControlId, $strParameter )

lstListbox_Change() protected méthode

protected lstListbox_Change ( )

pxyExample_Click() protected méthode

Notice how the optional "action parameter" we used in the RenderAsHref() or RenderEvents() call gets passed in as $strParameter here.
protected pxyExample_Click ( $strFormId, $strControlId, $strParameter )

tnvExample_AddItems() protected méthode

protected tnvExample_AddItems ( $strDirectory, $objParentItem = null )

tnvExample_Change() protected méthode

protected tnvExample_Change ( $strFormId, $strControlId, $strParameter )

txtItem_KeyPress() protected méthode

protected txtItem_KeyPress ( )

Property Details

$btnAdd protected_oe property

protected $btnAdd

$btnAlert protected_oe property

protected $btnAlert

$btnButton protected_oe property

protected $btnButton

$btnCalendar protected_oe property

protected $btnCalendar

$btnCalendarPopup protected_oe property

protected $btnCalendarPopup

$btnCancel protected_oe property

protected $btnCancel

$btnConfirm protected_oe property

protected $btnConfirm

$btnDatePicker protected_oe property

protected $btnDatePicker

$btnDateTimePicker protected_oe property

protected $btnDateTimePicker

$btnDateTimeTextBox protected_oe property

protected $btnDateTimeTextBox

$btnDeleteLeft protected_oe property

protected $btnDeleteLeft

$btnFocus protected_oe property

protected $btnFocus

$btnForceUpdate1 protected_oe property

protected $btnForceUpdate1

$btnForceUpdate2 protected_oe property

protected $btnForceUpdate2

$btnJavaScript protected_oe property

protected $btnJavaScript

$btnMoveLeft protected_oe property

protected $btnMoveLeft

$btnMoveRight protected_oe property

protected $btnMoveRight

$btnNew protected_oe property

protected $btnNew

$btnSave protected_oe property

protected $btnSave

$btnSave1 protected_oe property

protected $btnSave1

$btnSave2 protected_oe property

protected $btnSave2

$btnSelect protected_oe property

protected $btnSelect

$btnToggleDisplay protected_oe property

protected $btnToggleDisplay

$btnToggleEnable protected_oe property

protected $btnToggleEnable

$btnUpdate protected_oe property

protected $btnUpdate

$calCalendar protected_oe property

protected $calCalendar

$calCalendarPopup protected_oe property

protected $calCalendarPopup

$chkScaleCanvasDown protected_oe property

protected $chkScaleCanvasDown

$colFirstName protected_oe property

protected $colFirstName

$colId protected_oe property

DataGrid Columns
protected $colId

$colLastName protected_oe property

protected $colLastName

$ctlCustom protected_oe property

protected $ctlCustom

$dtgPerson protected_oe property

protected $dtgPerson

$dtgPersons protected_oe property

Declare the DataGrid
protected $dtgPersons

$dtpDatePicker protected_oe property

protected $dtpDatePicker

$dtpDateTimePicker protected_oe property

protected $dtpDateTimePicker

$dtxCalendar protected_oe property

protected $dtxCalendar

$dtxDateTimeTextBox protected_oe property

protected $dtxDateTimeTextBox

$flaSample protected_oe property

protected $flaSample

$imgSample protected_oe property

protected $imgSample

$intEditPersonId protected_oe property

This value is either a Person->Id, "null" (if nothing is being edited), or "-1" (if creating a new Person)
protected $intEditPersonId

$lblArray protected_oe property

protected $lblArray

$lblMessage protected_oe property

Local declarations of our Qcontrols
protected $lblMessage

$lblResponse protected_oe property

protected $lblResponse

$lblResult protected_oe property

protected $lblResult

$lblSelected protected_oe property

protected $lblSelected

$lblTimestamp1 protected_oe property

protected $lblTimestamp1

$lblTimestamp2 protected_oe property

protected $lblTimestamp2

$lstFont protected_oe property

protected $lstFont

$lstListbox protected_oe property

protected $lstListbox

$objPerson1 protected_oe property

Local Person Objects
protected $objPerson1

$objPerson2 protected_oe property

protected $objPerson2

$objPersonReference protected_oe property

Get the Current Person Object (just for reference)
protected $objPersonReference

$pnlCode protected_oe property

protected $pnlCode

$pnlHover protected_oe property

protected $pnlHover

$pnlLeft protected_oe property

through using GetChildControls() and AutoRenderChildren
protected $pnlLeft

$pnlPanel protected_oe property

through using AutoRenderChildren
protected $pnlPanel

$pnlRight protected_oe property

protected $pnlRight

$pxyExample protected_oe property

RenderAsHref() and RenderAsEvents() on it.
protected $pxyExample

$strMessage protected_oe property

For this example, show how the panel can display this strMessage
protected $strMessage

$tnvExample protected_oe property

protected $tnvExample

$txtArray protected_oe property

protected $txtArray

$txtDisplay protected_oe property

protected $txtDisplay

$txtEnable protected_oe property

protected $txtEnable

$txtFirstName protected_oe property

protected $txtFirstName

$txtFirstName1 protected_oe property

protected $txtFirstName1

$txtFirstName2 protected_oe property

protected $txtFirstName2

$txtFocus protected_oe property

protected $txtFocus

$txtHeight protected_oe property

protected $txtHeight

$txtItem protected_oe property

protected $txtItem

$txtLastName protected_oe property

protected $txtLastName

$txtLastName1 protected_oe property

protected $txtLastName1

$txtLastName2 protected_oe property

protected $txtLastName2

$txtMessage1 protected_oe property

protected $txtMessage1

$txtMessage2 protected_oe property

protected $txtMessage2

$txtWidth protected_oe property

protected $txtWidth