PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.1.1
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.1.1
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.10.0 3.10.1 3.10.10 3.10.11 3.10.12 3.10.13 3.10.14 3.10.15 3.10.2 3.10.3 All 149 releases
← All changes | classes/Visualizer/Plugin.php +25 -2 3.0.53.1.1 View file →
@@ -27,9 +27,9 @@
27 27 */
28 28 class Visualizer_Plugin {
29 29
30 30 const NAME = 'visualizer';
31 - const VERSION = '3.0.5';
31 + const VERSION = '3.1.1';
32 32
33 33 // custom post types
34 34 const CPT_VISUALIZER = 'visualizer';
35 35
@@ -48,9 +48,8 @@
48 48 const ACTION_EDIT_CHART = 'visualizer-edit-chart';
49 49 const ACTION_CLONE_CHART = 'visualizer-clone-chart';
50 50 const ACTION_DELETE_CHART = 'visualizer-delete-chart';
51 51 const ACTION_UPLOAD_DATA = 'visualizer-upload-data';
52 - // Added by Ash/Upwork
53 52 const ACTION_EXPORT_DATA = 'visualizer-export-data';
54 53
55 54 /**
56 55 *Action used for fetching specific users/roles for permissions.
@@ -56,14 +55,25 @@
56 55 *Action used for fetching specific users/roles for permissions.
57 56 */
58 57 const ACTION_FETCH_PERMISSIONS_DATA = 'visualizer-fetch-permissions-data';
59 58
59 + /**
60 + *Action used for fetching db import data.
61 + */
62 + const ACTION_FETCH_DB_DATA = 'visualizer-fetch-db-data';
63 + const ACTION_SAVE_DB_QUERY = 'visualizer-save-db-query';
64 +
60 65 // custom filters
61 66 const FILTER_CHART_WRAPPER_CLASS = 'visualizer-chart-wrapper-class';
62 67 const FILTER_GET_CHART_SERIES = 'visualizer-get-chart-series';
63 68 const FILTER_GET_CHART_DATA = 'visualizer-get-chart-data';
64 69 const FILTER_GET_CHART_SETTINGS = 'visualizer-get-chart-settings';
70 + const FILTER_UNDO_REVISIONS = 'visualizer-undo-revisions';
71 + const FILTER_HANDLE_REVISIONS = 'visualizer-handle-revisions';
65 72
73 + const CF_DB_SCHEDULE = 'visualizer-db-schedule';
74 + const CF_DB_QUERY = 'visualizer-db-query';
75 +
66 76 const CF_CHART_URL = 'visualizer-chart-url';
67 77 const CF_CHART_SCHEDULE = 'visualizer-chart-schedule';
68 78 // Added by Ash/Upwork
69 79 const PRO_TEASER_URL = 'http://themeisle.com/plugins/visualizer-charts-and-graphs-pro-addon/';
@@ -96,8 +106,11 @@
96 106 *
97 107 * @access private
98 108 */
99 109 private function __construct() {
110 + if ( VISUALIZER_DEBUG ) {
111 + add_action( 'themeisle_log_event', array( $this, 'themeisle_log_event_debug' ), 10, 5 );
112 + }
100 113 }
101 114
102 115 /**
103 116 * Returns singletone instance of the plugin.
@@ -181,7 +194,17 @@
181 194 *
182 195 * @access private
183 196 */
184 197 private function __clone() {
198 + }
199 +
200 + /**
201 + * For local testing, overrides the 'themeisle_log_event' hook and redirects to error.log.
202 + */
203 + final function themeisle_log_event_debug( $name, $message, $type, $file, $line ) {
204 + if ( Visualizer_Plugin::NAME !== $name ) {
205 + return;
206 + }
207 + error_log( sprintf( '%s (%s): %s in %s:%s', $name, $type, $message, $file, $line ) );
185 208 }
186 209
187 210 }