/** * {@inheritdoc} */ public function init() { foreach ($this->records as $k => $record) { $email = strtolower($record['first_name'] . '@' . $record['last_name'] . '.com'); $this->records[$k] += array('email' => $email, 'password' => md5($email)); } parent::init(); }
/** * {@inheritdoc} */ public function init() { foreach ($this->records as $k => $data) { $record = array('id' => String::uuid(), 'created' => date('Y-m-d H:i:s')); $this->records[$k] = array_merge($record, $data); } parent::init(); }
public function init() { foreach ($this->records as $k => $data) { $this->records[$k]['id'] = String::uuid(); $this->records[$k]['expires'] = date('Y-m-d H:i:s', strtotime($data['expires'])); $this->records[$k]['created'] = date('Y-m-d H:i:s'); } parent::init(); }