Page MenuHomestyx hydra

PhabricatorEdgeEditType.php
No OneTemporary

PhabricatorEdgeEditType.php

<?php
final class PhabricatorEdgeEditType
extends PhabricatorPHIDListEditType {
private $edgeOperation;
private $valueDescription;
public function setEdgeOperation($edge_operation) {
$this->edgeOperation = $edge_operation;
return $this;
}
public function getEdgeOperation() {
return $this->edgeOperation;
}
public function generateTransactions(
PhabricatorApplicationTransaction $template,
array $spec) {
$value = idx($spec, 'value');
if ($this->getEdgeOperation() !== null) {
$value = array_fuse($value);
$value = array(
$this->getEdgeOperation() => $value,
);
}
$xaction = $this->newTransaction($template)
->setNewValue($value);
return array($xaction);
}
protected function newBulkParameterType() {
if (!$this->getDatasource()) {
return null;
}
return id(new BulkTokenizerParameterType())
->setDatasource($this->getDatasource());
}
}

File Metadata

Mime Type
text/x-php
Expires
Thu, Jan 15, 3:59 AM (1 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
624874
Default Alt Text
PhabricatorEdgeEditType.php (966 B)

Event Timeline