Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1139145
PhabricatorApplyEditField.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
PhabricatorApplyEditField.php
View Options
<?php
final
class
PhabricatorApplyEditField
extends
PhabricatorEditField
{
private
$actionDescription
;
private
$actionConflictKey
;
protected
function
newControl
()
{
return
null
;
}
public
function
setActionDescription
(
$action_description
)
{
$this
->
actionDescription
=
$action_description
;
return
$this
;
}
public
function
getActionDescription
()
{
return
$this
->
actionDescription
;
}
public
function
setActionConflictKey
(
$action_conflict_key
)
{
$this
->
actionConflictKey
=
$action_conflict_key
;
return
$this
;
}
public
function
getActionConflictKey
()
{
return
$this
->
actionConflictKey
;
}
protected
function
newHTTPParameterType
()
{
return
new
AphrontBoolHTTPParameterType
();
}
protected
function
newConduitParameterType
()
{
return
new
ConduitBoolParameterType
();
}
public
function
shouldGenerateTransactionsFromSubmit
()
{
// This type of edit field just applies a prebuilt action, like "Accept
// Revision", and can not be submitted as part of an "Edit Object" form.
return
false
;
}
protected
function
newCommentAction
()
{
return
id
(
new
PhabricatorEditEngineStaticCommentAction
())
->
setDescription
(
$this
->
getActionDescription
())
->
setConflictKey
(
$this
->
getActionConflictKey
());
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Jul 1, 8:00 AM (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
281022
Default Alt Text
PhabricatorApplyEditField.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment