3 final class PhabricatorChatLogEvent
4 extends PhabricatorChatLogDAO
5 implements PhabricatorPolicyInterface
{
12 protected $loggedByPHID;
14 private $channel = self
::ATTACHABLE
;
16 protected function getConfiguration() {
18 self
::CONFIG_TIMESTAMPS
=> false,
19 self
::CONFIG_COLUMN_SCHEMA
=> array(
24 self
::CONFIG_KEY_SCHEMA
=> array(
26 'columns' => array('epoch'),
29 ) + parent
::getConfiguration();
32 public function attachChannel(PhabricatorChatLogChannel
$channel) {
33 $this->channel
= $channel;
37 public function getChannel() {
38 return $this->assertAttached($this->channel
);
42 /* -( PhabricatorPolicyInterface )----------------------------------------- */
45 public function getCapabilities() {
47 PhabricatorPolicyCapability
::CAN_VIEW
,
51 public function getPolicy($capability) {
52 return $this->getChannel()->getPolicy($capability);
55 public function hasAutomaticCapability($capability, PhabricatorUser
$viewer) {
56 return $this->getChannel()->hasAutomaticCapability($capability, $viewer);