public function export($bits = null) { $export = parent::export(); $export['hruid'] = $this->login(); $export['displayName'] = $this->displayName(); $export['fullName'] = $this->fullName(); if ($bits & self::EXPORT_MICRO) { $export['micro'] = $this->image()->src('micro'); } if ($bits & self::EXPORT_SMALL) { $export['small'] = $this->image()->src('small'); } return $export; }
public function export($bits = null) { $array = parent::export(); $array['question'] = $this->question; $array['answer1'] = $this->answer1; $array['answer2'] = $this->answer2; $array['count1'] = $this->count1; $array['count2'] = $this->count2; $array['date'] = $this->date->format('Y-m-d'); return $array; }
public function export($bits = null) { $export = parent::export(); if ($this->name !== null) { $export['name'] = $this->name; } if ($this->versions !== null) { foreach ($this->versions as $key => $version) { $export['versions'][$key] = array('wrote' => $version['wrote'], 'writer' => $version['writer']->export(), 'content' => $version['content'], 'html' => MiniWiki::WikiToHTML($version['content'], true)); } } if ($this->comments !== null) { $export['comments'] = $this->comments; } return $export; }