本文整理匯總了PHP中plgCCK_Field_ValidationRequired::onCCK_Field_ValidationPrepareStore方法的典型用法代碼示例。如果您正苦於以下問題:PHP plgCCK_Field_ValidationRequired::onCCK_Field_ValidationPrepareStore方法的具體用法?PHP plgCCK_Field_ValidationRequired::onCCK_Field_ValidationPrepareStore怎麽用?PHP plgCCK_Field_ValidationRequired::onCCK_Field_ValidationPrepareStore使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類plgCCK_Field_ValidationRequired
的用法示例。
在下文中一共展示了plgCCK_Field_ValidationRequired::onCCK_Field_ValidationPrepareStore方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: g_onCCK_FieldPrepareStore_Validation
public function g_onCCK_FieldPrepareStore_Validation(&$field, $name, &$value, &$config = array())
{
if ($config['doValidation'] == 1 || $config['doValidation'] == 3) {
if ($field->required) {
plgCCK_Field_ValidationRequired::onCCK_Field_ValidationPrepareStore($field, $name, $value, $config);
}
$validation = $field->validation;
if (!$validation) {
return;
}
require_once JPATH_PLUGINS . '/cck_field_validation/' . $validation . '/' . $validation . '.php';
JCck::callFunc_Array('plgCCK_Field_Validation' . $validation, 'onCCK_Field_ValidationPrepareStore', array(&$field, $name, &$value, &$config));
}
}