PHP Class CalculatorForm, qcodo

Inheritance: extends sfForm
显示文件 Open project: qcodo/qcodo Class Usage Examples

Protected Properties

Property Type Description
$btnCalculate
$lblResult
$lstOperation
$txtValue1 And a label to output the result
$txtValue2

Protected Methods

Method Description
Form_Create ( ) Define all the QContrtol objects for our Calculator
Form_Load ( )
Form_Validate ( )
btnCalculate_Click ( $strFormId, $strControlId, $strParameter ) Perform the necessary operations on the operands, and output the value to the lblResult

Method Details

Form_Create() protected method

Define all the QContrtol objects for our Calculator
protected Form_Create ( )

Form_Load() protected method

protected Form_Load ( )

Form_Validate() protected method

protected Form_Validate ( )

btnCalculate_Click() protected method

Perform the necessary operations on the operands, and output the value to the lblResult
protected btnCalculate_Click ( $strFormId, $strControlId, $strParameter )

Property Details

$btnCalculate protected_oe property

protected $btnCalculate

$lblResult protected_oe property

protected $lblResult

$lstOperation protected_oe property

protected $lstOperation

$txtValue1 protected_oe property

And a label to output the result
protected $txtValue1

$txtValue2 protected_oe property

protected $txtValue2