Dotclear 2.24
Loading...
Searching...
No Matches
dcUpgrade Class Reference

Static Public Member Functions

static dotclearUpgrade ()
 
static settings2array (string $ns, string $setting)
 
static prefs2array (string $ws, string $pref)
 

Member Function Documentation

◆ dotclearUpgrade()

static dotclearUpgrade ( )
static

Do Dotclear upgrade if necessary

Exceptions
Exception
Returns
bool|dbStruct|int

References $version, dcCore\app(), DC_VERSION, and dcCore\SESSION_TABLE_NAME.

Referenced by adminAuth\init().

◆ settings2array()

static settings2array ( string  $ns,
string  $setting 
)
static

Convert old-fashion serialized array setting to new-fashion json encoded array

Parameters
string$nsnamespace name
string$settingThe setting ID

References dcCore\app(), and dcNamespace\NS_TABLE_NAME.

◆ prefs2array()

static prefs2array ( string  $ws,
string  $pref 
)
static

Convert old-fashion serialized array pref to new-fashion json encoded array

Parameters
string$wsworkspace name
string$prefThe preference ID

References dcCore\app(), and dcWorkspace\WS_TABLE_NAME.


The documentation for this class was generated from the following file: