2013-01-25 02:23:05 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @group conpherence
|
|
|
|
*/
|
|
|
|
final class ConpherenceParticipant extends ConpherenceDAO {
|
|
|
|
|
|
|
|
protected $participantPHID;
|
|
|
|
protected $conpherencePHID;
|
|
|
|
protected $participationStatus;
|
|
|
|
protected $behindTransactionPHID;
|
|
|
|
protected $dateTouched;
|
|
|
|
|
2013-01-27 03:53:30 +01:00
|
|
|
public function markUpToDate(ConpherenceTransaction $xaction) {
|
2013-01-25 02:23:05 +01:00
|
|
|
if (!$this->isUpToDate()) {
|
|
|
|
$this->setParticipationStatus(ConpherenceParticipationStatus::UP_TO_DATE);
|
2013-01-27 03:53:30 +01:00
|
|
|
$this->setBehindTransactionPHID($xaction->getPHID());
|
2013-01-25 02:23:05 +01:00
|
|
|
$this->save();
|
|
|
|
}
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function isUpToDate() {
|
|
|
|
return $this->getParticipationStatus() ==
|
|
|
|
ConpherenceParticipationStatus::UP_TO_DATE;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|