Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
f6284bdc
Commit
f6284bdc
authored
11 years ago
by
Bart Visscher
Browse files
Options
Downloads
Patches
Plain Diff
Add missing return true statements to legacy preferences functions
parent
395cc737
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/legacy/preferences.php
+9
-0
9 additions, 0 deletions
lib/legacy/preferences.php
with
9 additions
and
0 deletions
lib/legacy/preferences.php
+
9
−
0
View file @
f6284bdc
...
...
@@ -84,12 +84,14 @@ class OC_Preferences{
* @param string $app app
* @param string $key key
* @param string $value value
* @return bool
*
* Adds a value to the preferences. If the key did not exist before, it
* will be added automagically.
*/
public
static
function
setValue
(
$user
,
$app
,
$key
,
$value
)
{
self
::
$object
->
setValue
(
$user
,
$app
,
$key
,
$value
);
return
true
;
}
/**
...
...
@@ -102,36 +104,43 @@ class OC_Preferences{
*/
public
static
function
deleteKey
(
$user
,
$app
,
$key
)
{
self
::
$object
->
deleteKey
(
$user
,
$app
,
$key
);
return
true
;
}
/**
* @brief Remove app of user from preferences
* @param string $user user
* @param string $app app
* @return bool
*
* Removes all keys in preferences belonging to the app and the user.
*/
public
static
function
deleteApp
(
$user
,
$app
)
{
self
::
$object
->
deleteApp
(
$user
,
$app
);
return
true
;
}
/**
* @brief Remove user from preferences
* @param string $user user
* @return bool
*
* Removes all keys in preferences belonging to the user.
*/
public
static
function
deleteUser
(
$user
)
{
self
::
$object
->
deleteUser
(
$user
);
return
true
;
}
/**
* @brief Remove app from all users
* @param string $app app
* @return bool
*
* Removes all keys in preferences belonging to the app.
*/
public
static
function
deleteAppFromAllUsers
(
$app
)
{
self
::
$object
->
deleteAppFromAllUsers
(
$app
);
return
true
;
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment