Auth_PrefManager::setPref

Auth_PrefManager::setPref() – Set a preference.

Synopsis

require_once '/PrefManager.php';

bool Auth_PrefManager::setPref ( string $user_id , string $pref_id , mixed $value )

Description

Sets the value for $pref_id.

Parameter

string $user_id

The user to set for.

string $pref_id

The preference to set.

mixed $value

The value it should be set to.

Return value

returns Success or failure.

Throws

No exceptions thrown.

Note

This function can not be called statically.

Set the default value for a preference. (Previous) Set whether to return default values. (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.