本文整理匯總了PHP中JForm::validateField方法的典型用法代碼示例。如果您正苦於以下問題:PHP JForm::validateField方法的具體用法?PHP JForm::validateField怎麽用?PHP JForm::validateField使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類JForm
的用法示例。
在下文中一共展示了JForm::validateField方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: validateField
public function validateField($element, $group = null, $value = null, $input = null)
{
return parent::validateField($element, $group, $value, $input);
}
示例2: validateField
/**
* Method to validate a JFormField object based on field data.
*
* @param SimpleXMLElement $element The XML element object representation of the form field.
* @param string $group The optional dot-separated form group path on which to find the field.
* @param mixed $value The optional value to use as the default for the field.
* @param Registry $input An optional Registry object with the entire data set to validate
* against the entire form.
*
* @return mixed Boolean true if field value is valid, Exception on failure.
*/
public function validateField(SimpleXMLElement $element, $group = null, $value = null, Registry $input = null)
{
return parent::validateField($element, $group, $value, $input);
}