Page MenuHomePhorge

PhabricatorEdgeObject.php
No OneTemporary

PhabricatorEdgeObject.php

<?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

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)

Event Timeline