本文整理匯總了PHP中QControl::_ProcessActionParams方法的典型用法代碼示例。如果您正苦於以下問題:PHP QControl::_ProcessActionParams方法的具體用法?PHP QControl::_ProcessActionParams怎麽用?PHP QControl::_ProcessActionParams使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類QControl
的用法示例。
在下文中一共展示了QControl::_ProcessActionParams方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: TriggerMethod
/**
* Triggers an event handler method for a given control ID
* NOTE: Parameters must be already validated and are guaranteed to exist.
*
* @param string $strControlId Control ID triggering the method
* @param string $strMethodName Method name which has to be fired. Includes a control id if a control action.
* @param QAction $objAction The action object which caused the event
*/
protected function TriggerMethod($strControlId, $strMethodName, QAction $objAction)
{
$mixParameter = $_POST['Qform__FormParameter'];
$objSourceControl = $this->objControlArray[$strControlId];
$params = QControl::_ProcessActionParams($objSourceControl, $objAction, $mixParameter);
if (strpos($strMethodName, '::')) {
// Calling a static method in a class
$f = explode('::', $strMethodName);
if (is_callable($f)) {
$f($this->strFormId, $params['controlId'], $params['param'], $params);
}
} elseif (($intPosition = strpos($strMethodName, ':')) !== false) {
$strDestControlId = substr($strMethodName, 0, $intPosition);
$strMethodName = substr($strMethodName, $intPosition + 1);
$objDestControl = $this->objControlArray[$strDestControlId];
QControl::_CallActionMethod($objDestControl, $strMethodName, $this->strFormId, $params);
} else {
$this->{$strMethodName}($this->strFormId, $params['controlId'], $params['param'], $params);
}
}