if (isset($user->{$field})) { continue; } // all validation moved to form2 if (isset($formdata->{$field})) { // process templates $user->{$field} = process_template($formdata->{$field}, $user); } } foreach ($PRF_FIELDS as $field) { if (isset($user->{$field})) { continue; } if (isset($formdata->{$field})) { // process templates $user->{$field} = process_template($formdata->{$field}, $user); } } // delete user if (!empty($user->deleted)) { if (!$allowdeletes) { $usersskipped++; $upt->track('status', $strusernotdeletedoff, 'warning'); continue; } if ($existinguser) { if (has_capability('moodle/site:doanything', $systemcontext, $existinguser->id)) { $upt->track('status', $strusernotdeletedadmin, 'error'); $deleteerrors++; continue; }
// process templates $user->$field = process_template($formdata->$field, $user); } } foreach ($PRF_FIELDS as $field) { if (isset($user->$field)) { continue; } if (isset($formdata->$field)) { // process templates if (is_array($formdata->$field)) { foreach ($formdata->$field as $k=>$v) { $user->$field[$k] = process_template($v, $user); } } else { $user->$field = process_template($formdata->$field, $user); } } } // delete user if (!empty($user->deleted)) { if (!$allowdeletes) { $usersskipped++; $upt->track('status', $strusernotdeletedoff, 'warning'); continue; } if ($existinguser) { if (is_siteadmin($existinguser->id)) { $upt->track('status', $strusernotdeletedadmin, 'error'); $deleteerrors++;
<?php echo process_template("scorebox_" + $menuItem->scoreboxStyle); ?> <!-- scorebox_0.php scorebox_1.php ... scorebox_N.php -->
function kneaver_sections_nav($atts, $contents = NULL) { extract(shortcode_atts(array('group' => '', 'post_type' => 'child-post'), $atts)); $Tpl = '$elems'; $TplElem = '<li><a href="#Section-$pos">$title</a></li>'; $TplIndicators = ''; $contents = process_template($post_type, $group, $Tpl, $TplElem, $TPLIndicators, 20, 0); return do_shortcode($contents); }
$conditions = array(); if ($min_time) { $conditions[] = "min_time=" . sprintf("%.2f", $min_time); } if ($max_time) { $conditions[] = "max_time=" . sprintf("%.2f", $max_time); } if ($request_tags_str) { $conditions[] = $request_tags_str; } $conditions_str = join(",", $conditions); $timer_tags_str = join(",", $timer_tags_arr); $tag_value_columns = ""; if (strstr($table_type_name, "tagN") || $table_type_name == "histogram" && strstr($hv_table_type_name, "tagN")) { $i = 1; foreach ($timer_tags_arr as $tag) { $tag_value_columns .= "\t`tag" . $i . "_value` varchar(64) DEFAULT NULL,\n"; $i++; } $tag_value_columns = rtrim($tag_value_columns, "\n"); $tag_value_columns = ltrim($tag_value_columns); } if ($percentile_columns) { if (strstr($table_type_name, "tagN_report") || strstr($table_type_name, "tag_report") || strstr($table_type_name, "tag2_report2")) { $percentile_columns .= ","; $percentile_columns = ltrim($percentile_columns, ","); } } $values = array("%name%" => $table_name, "%conditions%" => $conditions_str, "%percentile_columns%" => $percentile_columns, "%percentiles%" => $percentiles_str, "%tags%" => $timer_tags_str, "%parent_table_type%" => $hv_table_type_name, "%tag_value_columns%" => $tag_value_columns); echo process_template($table_type_name, $values), "\n";