Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F72148187
PhabricatorSimpleEditType.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 14, 23:55
Size
879 B
Mime Type
text/x-php
Expires
Tue, Jul 16, 23:55 (1 d, 19 h)
Engine
blob
Format
Raw Data
Handle
19038815
Attached To
rPH Phabricator
PhabricatorSimpleEditType.php
View Options
<?php
final
class
PhabricatorSimpleEditType
extends
PhabricatorEditType
{
private
$valueType
;
private
$valueDescription
;
public
function
setValueType
(
$value_type
)
{
$this
->
valueType
=
$value_type
;
return
$this
;
}
public
function
getValueType
()
{
return
$this
->
valueType
;
}
public
function
generateTransaction
(
PhabricatorApplicationTransaction
$template
,
array
$spec
)
{
$template
->
setTransactionType
(
$this
->
getTransactionType
())
->
setNewValue
(
idx
(
$spec
,
'value'
));
foreach
(
$this
->
getMetadata
()
as
$key
=>
$value
)
{
$template
->
setMetadataValue
(
$key
,
$value
);
}
return
$template
;
}
public
function
setValueDescription
(
$value_description
)
{
$this
->
valueDescription
=
$value_description
;
return
$this
;
}
public
function
getValueDescription
()
{
return
$this
->
valueDescription
;
}
}
Event Timeline
Log In to Comment