2012-02-17 19:21:38 +01:00
|
|
|
<?php
|
|
|
|
|
2012-06-02 23:00:08 +02:00
|
|
|
final class PhabricatorChatLogEvent
|
|
|
|
extends PhabricatorChatLogDAO
|
|
|
|
implements PhabricatorPolicyInterface {
|
2012-02-17 19:21:38 +01:00
|
|
|
|
2013-02-14 21:27:08 +01:00
|
|
|
protected $channelID;
|
2012-02-17 19:21:38 +01:00
|
|
|
protected $epoch;
|
|
|
|
protected $author;
|
|
|
|
protected $type;
|
|
|
|
protected $message;
|
|
|
|
protected $loggedByPHID;
|
|
|
|
|
2012-06-02 23:00:08 +02:00
|
|
|
public function getCapabilities() {
|
|
|
|
return array(
|
|
|
|
PhabricatorPolicyCapability::CAN_VIEW,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getPolicy($capability) {
|
|
|
|
// TODO: This is sort of silly and mostly just so that we can use
|
2012-09-13 19:15:08 +02:00
|
|
|
// CursorPagedPolicyAwareQuery; once we implement Channel objects we should
|
2012-06-02 23:00:08 +02:00
|
|
|
// just delegate policy to them.
|
|
|
|
return PhabricatorPolicies::POLICY_PUBLIC;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function hasAutomaticCapability($capability, PhabricatorUser $viewer) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2013-09-27 17:43:41 +02:00
|
|
|
public function describeAutomaticCapability($capability) {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
2012-02-17 19:21:38 +01:00
|
|
|
public function getConfiguration() {
|
|
|
|
return array(
|
|
|
|
self::CONFIG_TIMESTAMPS => false,
|
|
|
|
) + parent::getConfiguration();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|