mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-11 17:32:41 +01:00
28 lines
594 B
PHP
28 lines
594 B
PHP
|
<?php
|
||
|
|
||
|
/**
|
||
|
* @group conpherence
|
||
|
*/
|
||
|
final class ConpherenceParticipant extends ConpherenceDAO {
|
||
|
|
||
|
protected $participantPHID;
|
||
|
protected $conpherencePHID;
|
||
|
protected $participationStatus;
|
||
|
protected $behindTransactionPHID;
|
||
|
protected $dateTouched;
|
||
|
|
||
|
public function markUpToDate() {
|
||
|
if (!$this->isUpToDate()) {
|
||
|
$this->setParticipationStatus(ConpherenceParticipationStatus::UP_TO_DATE);
|
||
|
$this->save();
|
||
|
}
|
||
|
return $this;
|
||
|
}
|
||
|
|
||
|
public function isUpToDate() {
|
||
|
return $this->getParticipationStatus() ==
|
||
|
ConpherenceParticipationStatus::UP_TO_DATE;
|
||
|
}
|
||
|
|
||
|
}
|