Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2890287
PhabricatorEdgeObject.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
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
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 13:19 (3 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1125008
Default Alt Text
PhabricatorEdgeObject.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment