Lines Matching refs:candidate
244 * @param array $candidate
246 protected function insertDefaults(&$candidate) argument
248 if (empty($candidate[1])) {
249 $candidate[1] = $this->defaults['password'];
251 if (empty($candidate[2])) {
252 $candidate[2] = $this->defaults['name'];
254 if (empty($candidate[3])) {
255 $candidate[3] = $this->defaults['email'];
257 if (empty($candidate[4])) {
258 $candidate[4] = $this->defaults['groups'];
265 * @param array $candidate raw values of line from input file
269 protected function _cleanImportUser($candidate, &$error) { argument
273 $this->insertDefaults($candidate);
276 $INPUT->set('userid', $candidate[0]);
277 $INPUT->set('userpass', $candidate[1]);
278 $INPUT->set('username', $candidate[2]);
279 $INPUT->set('usermail', $candidate[3]);
280 $INPUT->set('usergroups', $candidate[4]);