Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
ReadingListEntryRow | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | n/a |
0 / 0 |
1 | <?php |
2 | /** |
3 | * @file |
4 | * Documentation hack for plain objects returned by DB queries. |
5 | * For the benefit of IDEs only, won't be used outside phpdoc. |
6 | */ |
7 | |
8 | namespace MediaWiki\Extension\ReadingLists\Doc; |
9 | |
10 | /** |
11 | * Database row for reading_list_entry. |
12 | * Represents a single wiki page. |
13 | */ |
14 | trait ReadingListEntryRow { |
15 | |
16 | /** @var string Primary key. */ |
17 | public $rle_id; |
18 | |
19 | /** @var string Reference to reading_list.rl_id. */ |
20 | public $rle_rl_id; |
21 | |
22 | /** @var string Central ID of user. */ |
23 | public $rle_user_id; |
24 | |
25 | /** @var int Reference to reading_list_project.rlp_id. */ |
26 | public $rle_rlp_id; |
27 | |
28 | /** |
29 | * Wiki project domain. |
30 | * Only present when joined with reading_list_project (used for deduplicated storage). |
31 | * @var string |
32 | */ |
33 | public $rlp_project; |
34 | |
35 | /** |
36 | * Page title (including the localised namespace name). |
37 | * We can't easily use page ids due to the cross-wiki nature of the project; |
38 | * also, page ids don't age well when content is deleted/moved. |
39 | * We also can't easily use namespace IDs since most APIs expect the namespace name so that's |
40 | * what we need to provide to clients; and there is no easy way to map IDs to names of a |
41 | * different wiki. |
42 | * @var string |
43 | */ |
44 | public $rle_title; |
45 | |
46 | /** @var string Creation timestamp. */ |
47 | public $rle_date_created; |
48 | |
49 | /** @var string Last modification timestamp. */ |
50 | public $rle_date_updated; |
51 | |
52 | /** |
53 | * Deleted flag. |
54 | * Entries will be hard-deleted eventually but kept around for a while for sync. |
55 | * @var string |
56 | */ |
57 | public $rle_deleted; |
58 | |
59 | } |