Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93614515
PhabricatorChatLogEvent.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
Sat, Nov 30, 04:24
Size
1 KB
Mime Type
text/x-php
Expires
Mon, Dec 2, 04:24 (2 d)
Engine
blob
Format
Raw Data
Handle
22676442
Attached To
rPH Phabricator
PhabricatorChatLogEvent.php
View Options
<?php
final
class
PhabricatorChatLogEvent
extends
PhabricatorChatLogDAO
implements
PhabricatorPolicyInterface
{
protected
$channelID
;
protected
$epoch
;
protected
$author
;
protected
$type
;
protected
$message
;
protected
$loggedByPHID
;
private
$channel
=
self
::
ATTACHABLE
;
protected
function
getConfiguration
()
{
return
array
(
self
::
CONFIG_TIMESTAMPS
=>
false
,
self
::
CONFIG_COLUMN_SCHEMA
=>
array
(
'author'
=>
'text64'
,
'type'
=>
'text4'
,
'message'
=>
'text'
,
),
self
::
CONFIG_KEY_SCHEMA
=>
array
(
'channel'
=>
array
(
'columns'
=>
array
(
'epoch'
),
),
),
)
+
parent
::
getConfiguration
();
}
public
function
attachChannel
(
PhabricatorChatLogChannel
$channel
)
{
$this
->
channel
=
$channel
;
return
$this
;
}
public
function
getChannel
()
{
return
$this
->
assertAttached
(
$this
->
channel
);
}
/* -( PhabricatorPolicyInterface )----------------------------------------- */
public
function
getCapabilities
()
{
return
array
(
PhabricatorPolicyCapability
::
CAN_VIEW
,
);
}
public
function
getPolicy
(
$capability
)
{
return
$this
->
getChannel
()->
getPolicy
(
$capability
);
}
public
function
hasAutomaticCapability
(
$capability
,
PhabricatorUser
$viewer
)
{
return
$this
->
getChannel
()->
hasAutomaticCapability
(
$capability
,
$viewer
);
}
public
function
describeAutomaticCapability
(
$capability
)
{
return
null
;
}
}
Event Timeline
Log In to Comment