-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathOutdatedTranslationApiResponse.php
More file actions
42 lines (31 loc) · 1.12 KB
/
OutdatedTranslationApiResponse.php
File metadata and controls
42 lines (31 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
namespace dokuwiki\plugin\translation;
use dokuwiki\Remote\Response\ApiResponse;
class OutdatedTranslationApiResponse extends ApiResponse
{
/** @var string The page ID */
public $id;
/** @var string The language code of this translation */
public $lang;
/** @var int The unix timestamp of the last modified date of this page, 0 if it does not exist */
public $lastModified;
/** @var string The page ID of the original page */
public $originalID;
/** @var int The unix timestamp of the last modified date of this page, 0 if it does not exist */
public $originalModified;
/** @var string The status of this translation. Either "missing" or "outdated" */
public $status;
public function __construct($origPage, $transID, $transMod, $transLang, $status)
{
$this->id = $transID;
$this->lang = $transLang;
$this->lastModified = (int) $transMod;
$this->originalID = $origPage['id'];
$this->originalModified = $origPage['mtime'];
$this->status = $status;
}
public function __toString()
{
return $this->id;
}
}