Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F3281372
PhabricatorChatLogChannel.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
PhabricatorChatLogChannel.php
View Options
<?php
final
class
PhabricatorChatLogChannel
extends
PhabricatorChatLogDAO
implements
PhabricatorPolicyInterface
{
protected
$serviceName
;
protected
$serviceType
;
protected
$channelName
;
protected
$viewPolicy
;
protected
$editPolicy
;
protected
function
getConfiguration
(
)
{
return
array
(
self
::
CONFIG_COLUMN_SCHEMA
=>
array
(
'serviceName'
=>
'text64'
,
'serviceType'
=>
'text32'
,
'channelName'
=>
'text64'
,
)
,
self
::
CONFIG_KEY_SCHEMA
=>
array
(
'key_channel'
=>
array
(
'columns'
=>
array
(
'channelName'
,
'serviceType'
,
'serviceName'
)
,
'unique'
=>
true
,
)
,
)
,
)
+
parent
::
getConfiguration
(
)
;
}
public
function
getCapabilities
(
)
{
return
array
(
PhabricatorPolicyCapability
::
CAN_VIEW
,
PhabricatorPolicyCapability
::
CAN_EDIT
,
)
;
}
public
function
getPolicy
(
$capability
)
{
switch
(
$capability
)
{
case
PhabricatorPolicyCapability
::
CAN_VIEW
:
return
$this
->
viewPolicy
;
break
;
case
PhabricatorPolicyCapability
::
CAN_EDIT
:
return
$this
->
editPolicy
;
break
;
}
}
public
function
hasAutomaticCapability
(
$capability
,
PhabricatorUser
$viewer
)
{
return
false
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Mar 23, 21:19 (1 w, 1 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1224887
Default Alt Text
PhabricatorChatLogChannel.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment