Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2889295
PhabricatorApplicationTransactionValidationResponse.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1016 B
Referenced Files
None
Subscribers
None
PhabricatorApplicationTransactionValidationResponse.php
View Options
<?php
final
class
PhabricatorApplicationTransactionValidationResponse
extends
AphrontProxyResponse
{
private
$viewer
;
private
$exception
;
private
$cancelURI
;
public
function
setCancelURI
(
$cancel_uri
)
{
$this
->
cancelURI
=
$cancel_uri
;
return
$this
;
}
public
function
setException
(
PhabricatorApplicationTransactionValidationException
$exception
)
{
$this
->
exception
=
$exception
;
return
$this
;
}
protected
function
buildProxy
(
)
{
return
new
AphrontDialogResponse
(
)
;
}
public
function
reduceProxyResponse
(
)
{
$request
=
$this
->
getRequest
(
)
;
$ex
=
$this
->
exception
;
$title
=
pht
(
'Validation Errors'
)
;
$dialog
=
id
(
new
AphrontDialogView
(
)
)
->
setUser
(
$request
->
getUser
(
)
)
->
setTitle
(
$title
)
;
$list
=
array
(
)
;
foreach
(
$ex
->
getErrors
(
)
as
$error
)
{
$list
[
]
=
$error
->
getMessage
(
)
;
}
$dialog
->
appendList
(
$list
)
;
$dialog
->
addCancelButton
(
$this
->
cancelURI
)
;
return
$this
->
getProxy
(
)
->
setDialog
(
$dialog
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Jan 19 2025, 11:57 (4 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1124310
Default Alt Text
PhabricatorApplicationTransactionValidationResponse.php (1016 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment