Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96521828
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
Fri, Dec 27, 13:42
Size
404 B
Mime Type
text/x-php
Expires
Sun, Dec 29, 13:42 (2 d)
Engine
blob
Format
Raw Data
Handle
23197568
Attached To
rPH Phabricator
PhabricatorSettingsAdjustController.php
View Options
<?php
final
class
PhabricatorSettingsAdjustController
extends
PhabricatorController
{
public
function
handleRequest
(
AphrontRequest
$request
)
{
$user
=
$request
->
getUser
();
$prefs
=
$user
->
loadPreferences
();
$prefs
->
setPreference
(
$request
->
getStr
(
'key'
),
$request
->
getStr
(
'value'
));
$prefs
->
save
();
return
id
(
new
AphrontAjaxResponse
())->
setContent
(
array
());
}
}
Event Timeline
Log In to Comment