Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conpherence/storage/ConpherenceThread.php
Show All 15 Lines | final class ConpherenceThread extends ConpherenceDAO | ||||
protected $viewPolicy; | protected $viewPolicy; | ||||
protected $editPolicy; | protected $editPolicy; | ||||
protected $joinPolicy; | protected $joinPolicy; | ||||
private $participants = self::ATTACHABLE; | private $participants = self::ATTACHABLE; | ||||
private $transactions = self::ATTACHABLE; | private $transactions = self::ATTACHABLE; | ||||
private $handles = self::ATTACHABLE; | private $handles = self::ATTACHABLE; | ||||
private $filePHIDs = self::ATTACHABLE; | private $filePHIDs = self::ATTACHABLE; | ||||
private $widgetData = self::ATTACHABLE; | |||||
private $images = self::ATTACHABLE; | private $images = self::ATTACHABLE; | ||||
public static function initializeNewRoom(PhabricatorUser $sender) { | public static function initializeNewRoom(PhabricatorUser $sender) { | ||||
$default_policy = id(new ConpherenceThreadMembersPolicyRule()) | $default_policy = id(new ConpherenceThreadMembersPolicyRule()) | ||||
->getObjectPolicyFullKey(); | ->getObjectPolicyFullKey(); | ||||
return id(new ConpherenceThread()) | return id(new ConpherenceThread()) | ||||
->setMessageCount(0) | ->setMessageCount(0) | ||||
->setTitle('') | ->setTitle('') | ||||
▲ Show 20 Lines • Show All 129 Lines • ▼ Show 20 Lines | final class ConpherenceThread extends ConpherenceDAO | ||||
public function attachFilePHIDs(array $file_phids) { | public function attachFilePHIDs(array $file_phids) { | ||||
$this->filePHIDs = $file_phids; | $this->filePHIDs = $file_phids; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getFilePHIDs() { | public function getFilePHIDs() { | ||||
return $this->assertAttached($this->filePHIDs); | return $this->assertAttached($this->filePHIDs); | ||||
} | } | ||||
public function attachWidgetData(array $widget_data) { | |||||
$this->widgetData = $widget_data; | |||||
return $this; | |||||
} | |||||
public function getWidgetData() { | |||||
return $this->assertAttached($this->widgetData); | |||||
} | |||||
public function loadImageURI($size) { | public function loadImageURI($size) { | ||||
$file = $this->getImage($size); | $file = $this->getImage($size); | ||||
if ($file) { | if ($file) { | ||||
return $file->getBestURI(); | return $file->getBestURI(); | ||||
} | } | ||||
return PhabricatorUser::getDefaultProfileImageURI(); | return PhabricatorUser::getDefaultProfileImageURI(); | ||||
▲ Show 20 Lines • Show All 292 Lines • Show Last 20 Lines |