forked from mtierltd/timetracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTimeline.php
More file actions
37 lines (31 loc) · 979 Bytes
/
Timeline.php
File metadata and controls
37 lines (31 loc) · 979 Bytes
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
<?php
// db/author.php
namespace OCA\TimeTracker\Db;
use OCP\AppFramework\Db\Entity;
class Timeline extends Entity {
public $id;
public $status;
public $userUid;
public $group1;
public $group2;
public $timeGroup;
public $filterProjects;
public $filterClients;
public $timeInterval;
public $totalDuration;
public $createdAt;
public function __construct() {
// add types in constructor
$this->addType('id', 'integer');
$this->addType('status', 'string');
$this->addType('userUid', 'string');
$this->addType('group1', 'string');
$this->addType('group2', 'string');
$this->addType('timeGroup', 'string');
$this->addType('filterProjects', 'string');
$this->addType('filterClients', 'string');
$this->addType('timeInterval', 'string');
$this->addType('totalDuration', 'string');
$this->addType('createdAt', 'integer');
}
}