Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F70659566
PhabricatorEdgeEditType.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
Sun, Jul 7, 15:54
Size
759 B
Mime Type
text/x-php
Expires
Tue, Jul 9, 15:54 (2 d)
Engine
blob
Format
Raw Data
Handle
18868570
Attached To
rPH Phabricator
PhabricatorEdgeEditType.php
View Options
<?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
);
}
}
Event Timeline
Log In to Comment