2012-05-21 19:24:23 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
final class AphrontCalendarEventView extends AphrontView {
|
|
|
|
|
2012-05-21 20:59:12 +02:00
|
|
|
private $userPHID;
|
2012-05-21 19:24:23 +02:00
|
|
|
private $name;
|
|
|
|
private $epochStart;
|
|
|
|
private $epochEnd;
|
|
|
|
private $description;
|
|
|
|
|
2012-05-21 20:59:12 +02:00
|
|
|
public function setUserPHID($user_phid) {
|
|
|
|
$this->userPHID = $user_phid;
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getUserPHID() {
|
|
|
|
return $this->userPHID;
|
|
|
|
}
|
|
|
|
|
2012-05-21 19:24:23 +02:00
|
|
|
public function setName($name) {
|
|
|
|
$this->name = $name;
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setEpochRange($start, $end) {
|
|
|
|
$this->epochStart = $start;
|
|
|
|
$this->epochEnd = $end;
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getEpochStart() {
|
|
|
|
return $this->epochStart;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getEpochEnd() {
|
|
|
|
return $this->epochEnd;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getName() {
|
|
|
|
return $this->name;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setDescription($description) {
|
|
|
|
$this->description = $description;
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getDescription() {
|
|
|
|
return $this->description;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function render() {
|
|
|
|
throw new Exception("Events are only rendered indirectly.");
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|