Lines Matching refs:rowcols
97 $rowcols = array();
98 $rowcols['line'] = $linenum;
100 $rowcols[$this->filecolumns[$key]] = s(trim($field));
102 $rowcols['status'] = array();
104 if (isset($rowcols['username'])) {
105 $stdusername = \core_user::clean_field($rowcols['username'], 'username');
106 if ($rowcols['username'] !== $stdusername) {
107 $rowcols['status'][] = get_string('invalidusernameupload');
111 $rowcols['username'] = \html_writer::link(
112 … new \moodle_url('/user/profile.php', ['id' => $userid]), $rowcols['username']);
115 $rowcols['status'][] = get_string('missingusername');
118 if (isset($rowcols['email'])) {
119 if (!validate_email($rowcols['email'])) {
120 $rowcols['status'][] = get_string('invalidemail');
124 $params = array('email' => $DB->sql_like_escape($rowcols['email'], '|'));
126 $rowcols['status'][] = get_string('useremailduplicate', 'error');
130 if (isset($rowcols['theme'])) {
131 list($status, $message) = field_value_validators::validate_theme($rowcols['theme']);
133 $rowcols['status'][] = $message;
138 $this->noerror = uu_check_custom_profile_data($rowcols) && $this->noerror;
139 $rowcols['status'] = implode('<br />', $rowcols['status']);
140 $data[] = $rowcols;