Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F104801744
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, Mar 12, 12:37
Size
1 KB
Mime Type
text/x-php
Expires
Fri, Mar 14, 12:37 (2 d)
Engine
blob
Format
Raw Data
Handle
24856808
Attached To
rPH Phabricator
PhabricatorEdgeObject.php
View Options
<?php
final
class
PhabricatorEdgeObject
extends
Phobject
implements
PhabricatorPolicyInterface
{
private
$id
;
private
$src
;
private
$dst
;
private
$type
;
private
$dateCreated
;
private
$sequence
;
public
static
function
newFromRow
(
array
$row
)
{
$edge
=
new
self
();
$edge
->
id
=
idx
(
$row
,
'id'
);
$edge
->
src
=
idx
(
$row
,
'src'
);
$edge
->
dst
=
idx
(
$row
,
'dst'
);
$edge
->
type
=
idx
(
$row
,
'type'
);
$edge
->
dateCreated
=
idx
(
$row
,
'dateCreated'
);
$edge
->
sequence
=
idx
(
$row
,
'seq'
);
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
;
}
public
function
getDateCreated
()
{
return
$this
->
dateCreated
;
}
public
function
getSequence
()
{
return
$this
->
sequence
;
}
/* -( 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