Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F21409797
Aphront404Response.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
770 B
Referenced Files
None
Subscribers
None
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
();
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Jul 31, 11:26 AM (1 d, 23 h)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
16390941
Default Alt Text
Aphront404Response.php (770 B)
Attached To
Mode
rP Phabricator
Attached
Detach File
Event Timeline
Log In to Comment