PHP Класс ExampleForm, qcodo

Наследование: extends QForm
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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 ( )

Описание методов

AddListItem() защищенный метод

protected AddListItem ( )

DisplayFullName() публичный метод

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

EditColumn_Render() публичный метод

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

FirstNameColumn_Render() публичный метод

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

Form_Create() защищенный метод

protected Form_Create ( )

Form_Load() защищенный метод

protected Form_Load ( )

Form_PreRender() защищенный метод

protected 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
protected Form_Validate ( )

LastNameColumn_Render() публичный метод

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

MoveTextbox() защищенный метод

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

SavePerson() защищенный метод

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

SavePersonForceUpdate() защищенный метод

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

TextItem_Cancel() защищенный метод

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

TextItem_Save() защищенный метод

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

btnButton_Click() защищенный метод

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

btnCancel_Click() защищенный метод

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

btnConfirm_Click() защищенный метод

protected btnConfirm_Click ( )

btnDeleteLeft_Click() защищенный метод

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

btnEdit_Click() защищенный метод

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

btnNew_Click() защищенный метод

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

btnSave_Click() защищенный метод

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

btnUpdate_Click() защищенный метод

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

chkSelected_Click() защищенный метод

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

chkSelected_Render() публичный метод

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

dtgPersons_Bind() защищенный метод

protected dtgPersons_Bind ( )

lblArray_Click() защищенный метод

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

lblMessage_Click() защищенный метод

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

lstFont_Change() защищенный метод

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

lstListbox_Change() защищенный метод

protected lstListbox_Change ( )

pxyExample_Click() защищенный метод

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 tnvExample_AddItems ( $strDirectory, $objParentItem = null )

tnvExample_Change() защищенный метод

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

txtItem_KeyPress() защищенный метод

protected txtItem_KeyPress ( )

Описание свойств

$btnAdd защищенное свойство

protected $btnAdd

$btnAlert защищенное свойство

protected $btnAlert

$btnButton защищенное свойство

protected $btnButton

$btnCalendar защищенное свойство

protected $btnCalendar

$btnCalendarPopup защищенное свойство

protected $btnCalendarPopup

$btnCancel защищенное свойство

protected $btnCancel

$btnConfirm защищенное свойство

protected $btnConfirm

$btnDatePicker защищенное свойство

protected $btnDatePicker

$btnDateTimePicker защищенное свойство

protected $btnDateTimePicker

$btnDateTimeTextBox защищенное свойство

protected $btnDateTimeTextBox

$btnDeleteLeft защищенное свойство

protected $btnDeleteLeft

$btnFocus защищенное свойство

protected $btnFocus

$btnForceUpdate1 защищенное свойство

protected $btnForceUpdate1

$btnForceUpdate2 защищенное свойство

protected $btnForceUpdate2

$btnJavaScript защищенное свойство

protected $btnJavaScript

$btnMoveLeft защищенное свойство

protected $btnMoveLeft

$btnMoveRight защищенное свойство

protected $btnMoveRight

$btnNew защищенное свойство

protected $btnNew

$btnSave защищенное свойство

protected $btnSave

$btnSave1 защищенное свойство

protected $btnSave1

$btnSave2 защищенное свойство

protected $btnSave2

$btnSelect защищенное свойство

protected $btnSelect

$btnToggleDisplay защищенное свойство

protected $btnToggleDisplay

$btnToggleEnable защищенное свойство

protected $btnToggleEnable

$btnUpdate защищенное свойство

protected $btnUpdate

$calCalendar защищенное свойство

protected $calCalendar

$calCalendarPopup защищенное свойство

protected $calCalendarPopup

$chkScaleCanvasDown защищенное свойство

protected $chkScaleCanvasDown

$colFirstName защищенное свойство

protected $colFirstName

$colId защищенное свойство

DataGrid Columns
protected $colId

$colLastName защищенное свойство

protected $colLastName

$ctlCustom защищенное свойство

protected $ctlCustom

$dtgPerson защищенное свойство

protected $dtgPerson

$dtgPersons защищенное свойство

Declare the DataGrid
protected $dtgPersons

$dtpDatePicker защищенное свойство

protected $dtpDatePicker

$dtpDateTimePicker защищенное свойство

protected $dtpDateTimePicker

$dtxCalendar защищенное свойство

protected $dtxCalendar

$dtxDateTimeTextBox защищенное свойство

protected $dtxDateTimeTextBox

$flaSample защищенное свойство

protected $flaSample

$imgSample защищенное свойство

protected $imgSample

$intEditPersonId защищенное свойство

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

$lblArray защищенное свойство

protected $lblArray

$lblMessage защищенное свойство

Local declarations of our Qcontrols
protected $lblMessage

$lblResponse защищенное свойство

protected $lblResponse

$lblResult защищенное свойство

protected $lblResult

$lblSelected защищенное свойство

protected $lblSelected

$lblTimestamp1 защищенное свойство

protected $lblTimestamp1

$lblTimestamp2 защищенное свойство

protected $lblTimestamp2

$lstFont защищенное свойство

protected $lstFont

$lstListbox защищенное свойство

protected $lstListbox

$objPerson1 защищенное свойство

Local Person Objects
protected $objPerson1

$objPerson2 защищенное свойство

protected $objPerson2

$objPersonReference защищенное свойство

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

$pnlCode защищенное свойство

protected $pnlCode

$pnlHover защищенное свойство

protected $pnlHover

$pnlLeft защищенное свойство

through using GetChildControls() and AutoRenderChildren
protected $pnlLeft

$pnlPanel защищенное свойство

through using AutoRenderChildren
protected $pnlPanel

$pnlRight защищенное свойство

protected $pnlRight

$pxyExample защищенное свойство

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

$strMessage защищенное свойство

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

$tnvExample защищенное свойство

protected $tnvExample

$txtArray защищенное свойство

protected $txtArray

$txtDisplay защищенное свойство

protected $txtDisplay

$txtEnable защищенное свойство

protected $txtEnable

$txtFirstName защищенное свойство

protected $txtFirstName

$txtFirstName1 защищенное свойство

protected $txtFirstName1

$txtFirstName2 защищенное свойство

protected $txtFirstName2

$txtFocus защищенное свойство

protected $txtFocus

$txtHeight защищенное свойство

protected $txtHeight

$txtItem защищенное свойство

protected $txtItem

$txtLastName защищенное свойство

protected $txtLastName

$txtLastName1 защищенное свойство

protected $txtLastName1

$txtLastName2 защищенное свойство

protected $txtLastName2

$txtMessage1 защищенное свойство

protected $txtMessage1

$txtMessage2 защищенное свойство

protected $txtMessage2

$txtWidth защищенное свойство

protected $txtWidth