Lines Matching +full:- +full:- +full:date
9 * - Ui\Recent
10 * - Ui\PageRevisions
11 * - Ui\MediaRevisions
12 * - Ui\PageDiff
13 * - Ui\MediaDiff
27 * - date: unix timestamp
28 * - ip: IPv4 or IPv6 address
29 * - type: change type (log line type)
30 * - id: page id
31 * - user: user name
32 * - sum: edit summary (or action reason)
33 * - extra: extra data (varies by line type)
34 * - sizechange: change of filesize
36 * - current: (optional) whether current revision or not
37 * - timestamp: (optional) set only when external edits occurred
38 * - mode: (internal use) ether "media" or "page"
45 'date' => false,
48 $this->info = $info;
64 return (bool) $this->val('current', $value);
77 if (isset($value) && !array_key_exists($key, $this->info)) {
79 $this->info[$key] = $value;
81 if (array_key_exists($key, $this->info)) {
83 return $this->info[$key];
89 * Set extra key-value to the revision information
97 $this->val($key, $value);
110 $id = $this->val('id');
111 if ($this->val('mode') == self::MODE_MEDIA) {
114 } elseif ($this->val('mode') == self::MODE_PAGE) {
121 * edit date and time of the page or media file
129 $formatted = dformat($this->val('date'));
130 if ($checkTimestamp && $this->val('timestamp') === false) {
131 // exact date is unknown for externally deleted file
132 // when unknown, alter formatted string "YYYY-mm-DD HH:MM" to "____-__-__ __:__"
133 $formatted = preg_replace('/[0-9a-zA-Z]/', '_', $formatted);
135 return '<span class="date">' . $formatted . '</span>';
146 return '<span class="sum">' . ' – ' . hsc($this->val('sum')) . '</span>';
157 if ($this->val('user')) {
158 $html = '<bdi>' . editorinfo($this->val('user')) . '</bdi>';
160 $html .= ' <bdo dir="ltr">(' . $this->val('ip') . ')</bdo>';
163 $html = '<bdo dir="ltr">' . $this->val('ip') . '</bdo>';
176 $id = $this->val('id');
177 $rev = $this->isCurrent() ? '' : $this->val('date');
179 if ($this->val('mode') == self::MODE_MEDIA) {
186 } elseif ($this->val('mode') == self::MODE_PAGE) {
197 } elseif ($this->isCurrent()) {
198 … //show only not-existing link for current page, which allows for directly create a new page/upload
204 if ($this->val('type') == DOKU_CHANGE_TYPE_DELETE) {
219 if (!$this->val('date')) return '—';
221 $id = $this->val('id');
222 $rev = $this->isCurrent() ? '' : $this->val('date');
226 $date = ($this->val('timestamp') === false)
228 : dformat($this->val('date'));
231 if ($this->val('mode') == self::MODE_MEDIA) {
235 } elseif ($this->val('mode') == self::MODE_PAGE) {
242 } elseif ($this->isCurrent()) {
243 … //show only not-existing link for current page, which allows for directly create a new page/upload
247 return $id . ' [' . $date . ']';
249 if ($this->val('type') == DOKU_CHANGE_TYPE_DELETE) {
252 …return '<bdi><a class="' . $class . '" href="' . $href . '">' . $id . ' [' . $date . ']' . '</a></…
264 $id = $this->val('id');
267 if ($this->val('mode') == self::MODE_MEDIA) {
272 $revs = (new MediaChangeLog($id))->getRevisions(0, 1);
278 } elseif ($this->val('mode') == self::MODE_PAGE) {
282 if ($this->val('type') !== DOKU_CHANGE_TYPE_CREATE) {
306 $id = $this->val('id');
307 $rev = $this->isCurrent() ? '' : $this->val('date');
310 if ($this->val('mode') == self::MODE_MEDIA) {
312 if (!$this->isCurrent() && file_exists(mediaFN($id, $rev))) {
316 } elseif ($this->val('mode') == self::MODE_PAGE) {
318 if (!$this->isCurrent()) {
347 $id = $this->val('id');
348 if ($this->val('mode') == self::MODE_MEDIA) {
352 } elseif ($this->val('mode') == self::MODE_PAGE) {
371 $value = filesize_h(abs($this->val('sizechange')));
372 if ($this->val('sizechange') > 0) {
375 } elseif ($this->val('sizechange') < 0) {
377 $value = '-' . $value;
393 return $this->isCurrent() ? '(' . $lang['current'] . ')' : '';