Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F108365389
Aphront404Response.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
Wed, Apr 16, 06:07
Size
770 B
Mime Type
text/x-php
Expires
Fri, Apr 18, 06:07 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
25571413
Attached To
rPH Phabricator
Aphront404Response.php
View Options
<?php
final
class
Aphront404Response
extends
AphrontHTMLResponse
{
public
function
getHTTPResponseCode
()
{
return
404
;
}
public
function
buildResponseString
()
{
$request
=
$this
->
getRequest
();
$user
=
$request
->
getUser
();
$dialog
=
id
(
new
AphrontDialogView
())
->
setUser
(
$user
)
->
setTitle
(
pht
(
'404 Not Found'
))
->
addCancelButton
(
'/'
,
pht
(
'Focus'
))
->
appendParagraph
(
pht
(
'Do not dwell in the past, do not dream of the future, '
.
'concentrate the mind on the present moment.'
));
$view
=
id
(
new
PhabricatorStandardPageView
())
->
setTitle
(
pht
(
'404 Not Found'
))
->
setRequest
(
$request
)
->
setDeviceReady
(
true
)
->
appendChild
(
$dialog
);
return
$view
->
render
();
}
}
Event Timeline
Log In to Comment