PHP 클래스 ExampleForm, qcodo

상속: extends QForm
파일 보기 프로젝트 열기: qcodo/qcodo 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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