1 | <?php |
||
30 | class Pause extends Booking |
||
31 | { |
||
32 | |||
33 | /** |
||
34 | * Constant for the pause start tag |
||
35 | * |
||
36 | * @var string PAUSE_TAG_START |
||
37 | */ |
||
38 | const PAUSE_TAG_START = '--ps--'; |
||
39 | |||
40 | /** |
||
41 | * Constant for the pause end tag |
||
42 | * |
||
43 | * @var string PAUSE_TAG_END |
||
44 | */ |
||
45 | const PAUSE_TAG_END = '--pe--'; |
||
46 | |||
47 | /** |
||
48 | * Default constructor |
||
49 | * |
||
50 | * @param string $comment Comment for the pause |
||
51 | * @param boolean $resuming Whether or not the pause has ended |
||
52 | * @param null|string $time Time of this booking |
||
53 | */ |
||
54 | public function __construct($comment = '', $resuming = false, $time = null) |
||
66 | |||
67 | /** |
||
68 | * Whether or not this booking can be the start of a task |
||
69 | * |
||
70 | * @param boolean $includePause Whether or not pauses are included as task building bookings |
||
71 | * |
||
72 | * @return boolean |
||
73 | */ |
||
74 | public function canStartTask($includePause = false) |
||
81 | |||
82 | /** |
||
83 | * Whether or not this booking can be the end of a task |
||
84 | * |
||
85 | * @param boolean $includePause Whether or not pauses are included as task building bookings |
||
86 | * |
||
87 | * @return boolean |
||
88 | */ |
||
89 | public function canEndTask($includePause = false) |
||
96 | } |
||
97 |