Path: blob/master/src/applications/calendar/view/AphrontCalendarEventView.php
12256 views
<?php12final class AphrontCalendarEventView extends AphrontView {34private $hostPHID;5private $name;6private $epochStart;7private $epochEnd;8private $description;9private $eventID;10private $viewerIsInvited;11private $uri;12private $isAllDay;13private $icon;14private $iconColor;15private $canEdit;16private $isCancelled;17private $datetimeSummary;1819public function setIconColor($icon_color) {20$this->iconColor = $icon_color;21return $this;22}2324public function getIconColor() {25return $this->iconColor;26}2728public function setIsCancelled($is_cancelled) {29$this->isCancelled = $is_cancelled;30return $this;31}3233public function getIsCancelled() {34return $this->isCancelled;35}3637public function setURI($uri) {38$this->uri = $uri;39return $this;40}4142public function getURI() {43return $this->uri;44}4546public function setEventID($event_id) {47$this->eventID = $event_id;48return $this;49}50public function getEventID() {51return $this->eventID;52}5354public function setViewerIsInvited($viewer_is_invited) {55$this->viewerIsInvited = $viewer_is_invited;56return $this;57}58public function getViewerIsInvited() {59return $this->viewerIsInvited;60}6162public function setHostPHID($host_phid) {63$this->hostPHID = $host_phid;64return $this;65}6667public function getHostPHID() {68return $this->hostPHID;69}7071public function setName($name) {72$this->name = $name;73return $this;74}7576public function setEpochRange($start, $end) {77$this->epochStart = $start;78$this->epochEnd = $end;79return $this;80}8182public function getEpochStart() {83return $this->epochStart;84}8586public function getEpochEnd() {87return $this->epochEnd;88}8990public function getName() {91return $this->name;92}9394public function setDescription($description) {95$this->description = $description;96return $this;97}9899public function getDescription() {100return $this->description;101}102103public function setIsAllDay($is_all_day) {104$this->isAllDay = $is_all_day;105return $this;106}107108public function getIsAllDay() {109return $this->isAllDay;110}111112public function setIcon($icon) {113$this->icon = $icon;114return $this;115}116117public function getIcon() {118return $this->icon;119}120121public function setCanEdit($can_edit) {122$this->canEdit = $can_edit;123return $this;124}125126public function getCanEdit() {127return $this->canEdit;128}129130public function getMultiDay() {131$nextday = strtotime('12:00 AM Tomorrow', $this->getEpochStart());132if ($this->getEpochEnd() > $nextday) {133return true;134}135return false;136}137138public function setDatetimeSummary($datetime_summary) {139$this->datetimeSummary = $datetime_summary;140return $this;141}142143public function getDatetimeSummary() {144return $this->datetimeSummary;145}146147public function render() {148throw new Exception(pht('Events are only rendered indirectly.'));149}150151}152153154