Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92732652
PhabricatorSettingsAdjustController.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
Sat, Nov 23, 06:04
Size
762 B
Mime Type
text/x-php
Expires
Mon, Nov 25, 06:04 (2 d)
Engine
blob
Format
Raw Data
Handle
22500582
Attached To
rPH Phabricator
PhabricatorSettingsAdjustController.php
View Options
<?php
final
class
PhabricatorSettingsAdjustController
extends
PhabricatorController
{
public
function
handleRequest
(
AphrontRequest
$request
)
{
$viewer
=
$this
->
getViewer
();
$preferences
=
PhabricatorUserPreferences
::
loadUserPreferences
(
$viewer
);
$editor
=
id
(
new
PhabricatorUserPreferencesEditor
())
->
setActor
(
$viewer
)
->
setContentSourceFromRequest
(
$request
)
->
setContinueOnNoEffect
(
true
)
->
setContinueOnMissingFields
(
true
);
$key
=
$request
->
getStr
(
'key'
);
$value
=
$request
->
getStr
(
'value'
);
$xactions
=
array
();
$xactions
[]
=
$preferences
->
newTransaction
(
$key
,
$value
);
$editor
->
applyTransactions
(
$preferences
,
$xactions
);
return
id
(
new
AphrontAjaxResponse
())->
setContent
(
array
());
}
}
Event Timeline
Log In to Comment