Class QConfirmAction
This action works as a if-else stopper for another action.
This action should be added to a control with the same event type before another action of that event type
Doing so brings up a JavaScript Confirmation box in front of the user.
If the user clicks on 'OK', then the next next action is executed (and any actions after that as well)
If the user clicks on 'Cancel', then next/rest of the action(s) are not executed
-
QBaseClass
-
QAction
-
QConfirmAction
Methods summary
public
|
#
__construct( string $strMessage )
Constructor of the function
Constructor of the function
Parameters
- $strMessage
- Message which is to be set as the confirmation prompt message
|
public
mixed|null|string
|
#
__get( string $strName )
PHP Magic function to get the property values of an object of the class
PHP Magic function to get the property values of an object of the class
Parameters
- $strName
- Name of the property
Returns
mixed|null|string
Throws
Overrides
|
public
string
|
#
RenderScript( QControl $objControl )
Returns the JS to be executed on the client side
Returns the JS to be executed on the client side
Parameters
Returns
string The JS to be executed
|
Properties summary
protected
string
|
$strMessage
Message to be shown to the user on the confirmation prompt
Message to be shown to the user on the confirmation prompt
|
|