. */ require_once('CFDBView.php'); class CFDBViewOptions extends CFDBView { /** * @param $plugin CF7DBPlugin * @return void */ function display(&$plugin) { $this->pageHeader($plugin); if ($this->outputHeader()) { $this->outputOptions($plugin); } } public function enqueueSettingsPageScripts() { wp_enqueue_style('jquery-ui', plugins_url('/css/jquery-ui.css', __FILE__)); wp_enqueue_script('jquery'); wp_enqueue_script('jquery-ui-core', array('jquery')); wp_enqueue_script('jquery-ui-tabs', array('jquery')); } /** * @param $plugin CF7DBPlugin */ public function outputOptions($plugin) { ?>

outputSettings($filter, $plugin); ?>
outputSettings($filter, $plugin); ?>

outputSettings($filter, $plugin); ?>
outputSettings($filter, $plugin); ?>
outputSettings($filter, $plugin); ?>
outputSystemSettings($plugin); $filter = function ($name) { return in_array($name, array( 'ErrorOutput', 'DropOnUninstall', '_version')); }; $this->outputSettings($filter, $plugin); ?>
outputFooter(); } /** * @return bool false means don't display additional contents because PHP version is too old */ public function outputHeader() { if (version_compare(phpversion(), '5.3') < 0) { printf('

%s

', __('PHP Upgrade Needed', 'contact-form-7-to-database-extension')); _e('This page requires PHP 5.3 or later on your server.', 'contact-form-7-to-database-extension'); echo '
'; _e('Your server\'s PHP version: ', 'contact-form-7-to-database-extension'); echo phpversion(); echo '
'; printf('%s', __('See WordPress Recommended PHP Version', 'contact-form-7-to-database-extension')); return false; } ?>

0) { echo '   '; echo htmlspecialchars(__('(WARNING: This plugin may not work properly with versions earlier than PHP 5.2)', 'contact-form-7-to-database-extension')); echo ''; } ?>
getMySqlVersion() ?> '; if (version_compare('5.0', $plugin->getMySqlVersion()) > 0) { echo htmlspecialchars(__('(WARNING: This plugin may not work properly with versions earlier than MySQL 5.0)', 'contact-form-7-to-database-extension')); } echo ''; ?>
   
getOptionMetaData(); if ($optionMetaData == null) { return; } ?> $aOptionMeta) { if ($filterFunction($aOptionKey)) { $displayText = is_array($aOptionMeta) ? $aOptionMeta[0] : $aOptionMeta; $displayText = __($displayText, 'contact-form-7-to-database-extension'); ?>

createFormControl($aOptionKey, $aOptionMeta, $plugin->getOption($aOptionKey)); ?>