本文整理汇总了PHP中custom_profile::process_field_row方法的典型用法代码示例。如果您正苦于以下问题:PHP custom_profile::process_field_row方法的具体用法?PHP custom_profile::process_field_row怎么用?PHP custom_profile::process_field_row使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类custom_profile
的用法示例。
在下文中一共展示了custom_profile::process_field_row方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ucp_preregister
/**
* UCP Pre-Register Operations (Pre-Registration Captcha)
*/
public static function ucp_preregister()
{
global $config, $db, $phpbb_root_path, $phpEx, $template, $user;
if (!$config['asacp_enable']) {
return array();
}
$user->add_lang('mods/asacp');
// Profile fields stuff
$cp = new custom_profile();
foreach (self::$profile_fields as $field => $data) {
if ($data['field_type'] == 'disabled') {
continue;
}
// Special stuff for $cp->process_field_row
$data['var_name'] = $data['field_ident'] = $field;
$data['lang_default_value'] = '';
switch ($config['asacp_profile_' . $field]) {
case 1:
// Required Field
$template->assign_block_vars('profile_fields', array('FIELD_ID' => $field, 'LANG_NAME' => isset($user->lang[$data['lang']]) ? $user->lang[$data['lang']] : $data['lang'], 'S_REQUIRED' => true, 'LANG_EXPLAIN' => isset($user->lang[$data['lang'] . '_EXPLAIN']) ? $user->lang[$data['lang'] . '_EXPLAIN'] : '', 'FIELD' => $cp->process_field_row('change', $data)));
break;
case 2:
if ($config['asacp_profile_during_reg']) {
// Normal Field
$template->assign_block_vars('profile_fields', array('FIELD_ID' => $field, 'LANG_NAME' => isset($user->lang[$data['lang']]) ? $user->lang[$data['lang']] : $data['lang'], 'LANG_EXPLAIN' => isset($user->lang[$data['lang'] . '_EXPLAIN']) ? $user->lang[$data['lang'] . '_EXPLAIN'] : '', 'FIELD' => $cp->process_field_row('change', $data)));
}
break;
}
}
if (!$config['asacp_reg_captcha']) {
return array();
}
}