@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Added a new storage object

Summary: Added a new storage object. Created PhabricatorChagLogChannel

Test Plan: Will be specified by Evan :P

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D4943

authored by

Afaque Hussain and committed by
epriestley
7b133b8b a05ee0d7

+42
+6
src/__phutil_library_map__.php
··· 731 731 'PhabricatorCalendarViewStatusController' => 'applications/calendar/controller/PhabricatorCalendarViewStatusController.php', 732 732 'PhabricatorCampfireProtocolAdapter' => 'infrastructure/daemon/bot/adapter/PhabricatorCampfireProtocolAdapter.php', 733 733 'PhabricatorChangesetResponse' => 'infrastructure/diff/PhabricatorChangesetResponse.php', 734 + 'PhabricatorChatLogChannel' => 'applications/chatlog/storage/PhabricatorChatLogChannel.php', 734 735 'PhabricatorChatLogChannelListController' => 'applications/chatlog/controller/PhabricatorChatLogChannelListController.php', 735 736 'PhabricatorChatLogChannelLogController' => 'applications/chatlog/controller/PhabricatorChatLogChannelLogController.php', 736 737 'PhabricatorChatLogConstants' => 'applications/chatlog/constants/PhabricatorChatLogConstants.php', ··· 2183 2184 'PhabricatorCalendarViewStatusController' => 'PhabricatorCalendarController', 2184 2185 'PhabricatorCampfireProtocolAdapter' => 'PhabricatorBaseProtocolAdapter', 2185 2186 'PhabricatorChangesetResponse' => 'AphrontProxyResponse', 2187 + 'PhabricatorChatLogChannel' => 2188 + array( 2189 + 0 => 'PhabricatorChatLogDAO', 2190 + 1 => 'PhabricatorPolicyInterface', 2191 + ), 2186 2192 'PhabricatorChatLogChannelListController' => 'PhabricatorChatLogController', 2187 2193 'PhabricatorChatLogChannelLogController' => 'PhabricatorChatLogController', 2188 2194 'PhabricatorChatLogController' => 'PhabricatorController',
+36
src/applications/chatlog/storage/PhabricatorChatLogChannel.php
··· 1 + <?php 2 + 3 + final class PhabricatorChatLogChannel 4 + extends PhabricatorChatLogDAO 5 + implements PhabricatorPolicyInterface { 6 + 7 + protected $serviceName; 8 + protected $serviceType; 9 + protected $channelName; 10 + protected $viewPolicy; 11 + protected $editPolicy; 12 + 13 + public function getCapabilities() { 14 + return array( 15 + PhabricatorPolicyCapability::CAN_VIEW, 16 + PhabricatorPolicyCapability::CAN_EDIT, 17 + ); 18 + } 19 + 20 + public function getPolicy($capability) { 21 + switch ($capability) { 22 + case PhabricatorPolicyCapability::CAN_VIEW: 23 + return $this->viewPolicy; 24 + break; 25 + case PhabricatorPolicyCapability::CAN_EDIT: 26 + return $this->editPolicy; 27 + break; 28 + } 29 + } 30 + 31 + public function hasAutomaticCapability($capability, PhabricatorUser $viewer) { 32 + return false; 33 + } 34 + 35 + } 36 +