Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101720035
PhabricatorChatLogChannel.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Feb 13, 01:25
Size
1 KB
Mime Type
text/x-php
Expires
Sat, Feb 15, 01:25 (1 d, 18 h)
Engine
blob
Format
Raw Data
Handle
24221807
Attached To
rPH Phabricator
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
;
}
}
Event Timeline
Log In to Comment