Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F946526
PhabricatorPeopleDeleteController.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
PhabricatorPeopleDeleteController.php
View Options
<?php
final
class
PhabricatorPeopleDeleteController
extends
PhabricatorPeopleController
{
public
function
handleRequest
(
AphrontRequest
$request
)
{
$viewer
=
$request
->
getUser
();
$id
=
$request
->
getURIData
(
'id'
);
$user
=
id
(
new
PhabricatorPeopleQuery
())
->
setViewer
(
$viewer
)
->
withIDs
(
array
(
$id
))
->
executeOne
();
if
(!
$user
)
{
return
new
Aphront404Response
();
}
$manage_uri
=
$this
->
getApplicationURI
(
"manage/{$id}/"
);
$doc_uri
=
PhabricatorEnv
::
getDoclink
(
'Permanently Destroying Data'
);
return
$this
->
newDialog
()
->
setTitle
(
pht
(
'Delete User'
))
->
appendParagraph
(
pht
(
'To permanently destroy this user, run this command from the '
.
'command line:'
))
->
appendCommand
(
hsprintf
(
'<tt>%s $</tt> %s'
,
PlatformSymbols
::
getPlatformServerPath
(),
csprintf
(
'./bin/remove destroy %R'
,
$user
->
getMonogram
())))
->
appendParagraph
(
pht
(
'Unless you have a very good reason to delete this user, consider '
.
'disabling them instead.'
))
->
appendParagraph
(
pht
(
'Users can not be permanently destroyed from the web interface. '
.
'See %s in the documentation for more information.'
,
phutil_tag
(
'a'
,
array
(
'href'
=>
$doc_uri
,
'target'
=>
'_blank'
,
),
pht
(
'Permanently Destroying Data'
))))
->
addCancelButton
(
$manage_uri
,
pht
(
'Close'
));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Jun 17, 11:35 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
223281
Default Alt Text
PhabricatorPeopleDeleteController.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment