public function values($formatter) { $values = parent::values($formatter); $values["user_id"] = $this->id; $values = array_merge($values, $this->info); return $values; }
public function values($formatter) { $values = parent::values($formatter); if ($this->subType() == self::REGISTER) { $values["registration_id"] = $this->registrationId; $values["registration_key"] = $this->registrationKey; $values["registration_approve_link"] = $formatter->getClientUrl("?v=registration/approve&id=" . $this->registrationId); } else { if ($this->subType() == self::CONFIRM) { $values["registration_id"] = $this->registrationId; $values["registration_approve_link"] = $formatter->getClientUrl("?v=registration/approve&id=" . $this->registrationId); } else { if ($this->subType() == self::USER_FOLDER_CREATED) { $values["user_folder_id"] = $this->data->id(); } } } return $values; }
public function values($formatter) { $values = parent::values($formatter); $values["item_id"] = ""; $values["item_name"] = ""; $values["item_path"] = ""; $values["item_internal_path"] = ""; $values["root_name"] = ""; foreach ($this->items as $i) { $values["item_id"] .= $i->id() . ","; $values["item_name"] .= $i->name() . ","; $values["item_path"] .= $i->path() . ","; } $values["item_id"] = rtrim($values["item_id"], ","); $values["item_name"] = rtrim($values["item_name"], ","); $values["item_path"] = rtrim($values["item_path"], ","); return $values; }
public function values($formatter) { return array_merge(parent::values($formatter), $this->values); }