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-03-26 21:30:35 +01:00
|
|
|
protected $settings = array();
|
|
|
|
|
|
|
|
public function getConfiguration() {
|
|
|
|
return array(
|
|
|
|
self::CONFIG_SERIALIZATION => array(
|
|
|
|
'settings' => self::SERIALIZATION_JSON,
|
|
|
|
),
|
|
|
|
) + parent::getConfiguration();
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getSettings() {
|
|
|
|
return nonempty($this->settings, array());
|
|
|
|
}
|
2013-01-25 02:23:05 +01:00
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|