Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
ReadingListRow | 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. |
12 | * Represents a list of pages (potentially from multiple wikis) plus some display-oriented metadata. |
13 | */ |
14 | trait ReadingListRow { |
15 | |
16 | /** @var string Primary key. */ |
17 | public $rl_id; |
18 | |
19 | /** @var string Central ID of user. */ |
20 | public $rl_user_id; |
21 | |
22 | /** |
23 | * Flag to tell apart the initial list from the rest, for UX purposes and to forbid deleting it. |
24 | * Users with more than zero lists always have exactly one default list. |
25 | * @var string |
26 | */ |
27 | public $rl_is_default; |
28 | |
29 | /** @var string Human-readable non-unique name of the list. */ |
30 | public $rl_name; |
31 | |
32 | /** @var string Description of the list. */ |
33 | public $rl_description; |
34 | |
35 | /** @var string Creation timestamp. */ |
36 | public $rl_date_created; |
37 | |
38 | /** |
39 | * Last modification timestamp. |
40 | * This only reflects modifications to the reading_list record, not |
41 | * modifications/additions/deletions of child entries. |
42 | * @var string |
43 | */ |
44 | public $rl_date_updated; |
45 | |
46 | /** |
47 | * Number of items in the list. |
48 | * Intended as a temporary performance optimization until T177462 is sorted out. |
49 | * @var string |
50 | */ |
51 | public $rl_size; |
52 | |
53 | /** |
54 | * Deleted flag. |
55 | * Lists will be hard-deleted eventually but kept around for a while for sync. |
56 | * @var string |
57 | */ |
58 | public $rl_deleted; |
59 | |
60 | } |