Property | Type | Description | |
---|---|---|---|
$name | string | Name used in WordPress option save | |
$user_id | integer | Used to store the preferences for user | |
$version | string | Version of preferences |
Method | Description | |
---|---|---|
__construct ( string $name, boolean | integer $user_id = false ) | Return an instance of WPDKPreferences class | |
defaults ( ) | Override this method to set the defaults values for this preferences | |
delete ( ) | Delete this configuration | |
delta ( ) : object | Do a delta compare/combine from two tree object config | |
get ( ) : WPDKPreferences | Helper to get the preferences from global options or for single users. | |
init ( ) : WPDKPreferences | Return the preferences object from the option. If not exists then an object is create runtime for you. | |
update ( ) | Update on database this configuration. | |
wpdk_preferences_feedback_reset ( ) | Restored feedback message | |
wpdk_preferences_feedback_update ( ) | Updated feedback message |
public defaults ( ) |
public get ( ) : WPDKPreferences | ||
return | WPDKPreferences |
public static init ( ) : WPDKPreferences | ||
return | WPDKPreferences |
public wpdk_preferences_feedback_reset ( ) |
public wpdk_preferences_feedback_update ( ) |