false, 'class' => array(), 'datatype' => '', 'default' => '', 'help' => '', 'input' => '', 'input_attributes' => '', 'label' => '', 'no_wrap' => false, 'numbered' => false, 'options' => '', 'output' => '', // likely deprecated 'required' => false ); protected $saved_settings = false; protected $saved_settings_msg = ''; private $setting_index = 0; /** * Returns the plugin framework's version. * * @since 040 */ public function c2c_plugin_version() { return '047'; } /** * Handles installation tasks, such as ensuring plugin options are instantiated and saved to options table. * * @param string $version Version of the plugin. * @param string $id_base A unique base ID for the plugin (generally a lower-case, dash-separated version of plugin name). * @param string $author_prefix Short (2-3 char) identifier for plugin author. * @param string $file The __FILE__ value for the sub-class. * @param array $plugin_options Optional. Array specifying further customization of plugin configuration. */ protected function __construct( $version, $id_base, $author_prefix, $file, $plugin_options = array() ) { $id_base = sanitize_title( $id_base ); if ( ! file_exists( $file ) ) { die( sprintf( __( 'Invalid file specified for C2C_Plugin: %s', 'remember-me-controls' ), $file ) ); } $u_id_base = str_replace( '-', '_', $id_base ); $author_prefix .= '_'; $defaults = array( 'admin_options_name' => $author_prefix . $u_id_base, // The setting under which all plugin settings are stored under (as array) 'config' => array(), // Default configuration 'disable_contextual_help' => false, // Prevent overriding of the contextual help? 'disable_update_check' => false, // Prevent WP from checking for updates to this plugin? 'hook_prefix' => $u_id_base . '_', // Prefix for all hooks 'form_name' => $u_id_base, // Name for the