public function __construct(WoW_Armory_Character $character) { $this->character = $character; // Make available global options $this->_global_options = get_option('wac_settings', WoW_Armory_Character_Plugin::admin_settings_default_values()); $this->_gender_table = array('male', 'female'); $this->_slot_table = array('head', 'neck', 'shoulder', 'back', 'chest', 'shirt', 'tabard', 'wrist', 'hands', 'waist', 'legs', 'feet', 'finger1', 'finger2', 'trinket1', 'trinket2', 'mainHand', 'offHand', 'ranged'); $this->_locale_table = array('en_US' => 'en', 'es_MX' => 'es', 'en_GB' => 'en', 'es_ES' => 'es', 'pt_PT' => 'pt', 'pt_BR' => 'pt', 'fr_FR' => 'fr', 'ru_RU' => 'ru', 'de_DE' => 'de', 'it_IT' => 'it', 'ko_KR' => 'ko', 'zh_TW' => 'zh', 'zh_CN' => 'zh'); }
/** * Plugin activation method. * * Ensure that the activation of the plugin creates sane default values for the global settings. */ static function on_activate() { add_option('wac_settings', WoW_Armory_Character_Plugin::admin_settings_default_values()); }