WPDK  1.5.0
WordPress Development Kit
 All Data Structures Files Functions Variables Pages
WPDKPreferencesImportExport Class Reference

Public Member Functions

 wpdk_preferences_import_export_feedback ()
 Feedback. More...
 

Static Public Member Functions

static init ($preferences)
 Init the import/export. More...
 

Data Fields

const ERROR_NONE = false
 
const ERROR_READ_FILE = 1
 
const ERROR_MALFORMED_FILE = 2
 
const ERROR_VERSION = 3
 
const ERROR_USER_ID = 4
 
 $preferences
 Preferences. More...
 

Detailed Description

Manage a generic import/export of preferences

Author
=undo= info@.nosp@m.wpxt.nosp@m.re.me
Date
2013-08-22
Version
1.0.1
Note
In this release you can import preferences from other users

Definition at line 418 of file wpdk-preferences.php.

Member Function Documentation

static init (   $preferences)
static

Init the import/export.

Return the original or imported preferences

Parameters
WPDKPreferences$preferencesAn instance of WPDKPreferences class
Returns
WPDKPreferences

Definition at line 462 of file wpdk-preferences.php.

wpdk_preferences_import_export_feedback ( )

Feedback.

Hook for feedback. See error property too.

Returns
array

Definition at line 575 of file wpdk-preferences.php.

Field Documentation

WPDKPreferences $preferences

Preferences.

An instance of class WPDKPreferences

Definition at line 451 of file wpdk-preferences.php.

const ERROR_MALFORMED_FILE = 2

Definition at line 422 of file wpdk-preferences.php.

const ERROR_NONE = false

Definition at line 420 of file wpdk-preferences.php.

const ERROR_READ_FILE = 1

Definition at line 421 of file wpdk-preferences.php.

const ERROR_USER_ID = 4

Definition at line 424 of file wpdk-preferences.php.

const ERROR_VERSION = 3

Definition at line 423 of file wpdk-preferences.php.


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