Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99231511
PhabricatorEdgeObject.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
Wed, Jan 22, 14:49
Size
1 KB
Mime Type
text/x-php
Expires
Fri, Jan 24, 14:49 (1 d, 20 h)
Engine
blob
Format
Raw Data
Handle
23726600
Attached To
rPH Phabricator
PhabricatorEdgeObject.php
View Options
<?php
final
class
PhabricatorEdgeObject
extends
Phobject
implements
PhabricatorPolicyInterface
{
private
$id
;
private
$src
;
private
$dst
;
private
$type
;
public
static
function
newFromRow
(
array
$row
)
{
$edge
=
new
self
();
$edge
->
id
=
$row
[
'id'
];
$edge
->
src
=
$row
[
'src'
];
$edge
->
dst
=
$row
[
'dst'
];
$edge
->
type
=
$row
[
'type'
];
return
$edge
;
}
public
function
getID
()
{
return
$this
->
id
;
}
public
function
getSourcePHID
()
{
return
$this
->
src
;
}
public
function
getEdgeType
()
{
return
$this
->
type
;
}
public
function
getDestinationPHID
()
{
return
$this
->
dst
;
}
public
function
getPHID
()
{
return
null
;
}
/* -( PhabricatorPolicyInterface )----------------------------------------- */
public
function
getCapabilities
()
{
return
array
(
PhabricatorPolicyCapability
::
CAN_VIEW
,
);
}
public
function
getPolicy
(
$capability
)
{
switch
(
$capability
)
{
case
PhabricatorPolicyCapability
::
CAN_VIEW
:
return
PhabricatorPolicies
::
getMostOpenPolicy
();
}
}
public
function
hasAutomaticCapability
(
$capability
,
PhabricatorUser
$viewer
)
{
return
false
;
}
}
Event Timeline
Log In to Comment