PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 1.0.1
Visualizer – Tables & Charts Manager with Built-in AI Generator v1.0.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/Source.php +21 -0 1.0.01.0.1 View file →
@@ -142,5 +142,26 @@
142 142
143 143 return $data;
144 144 }
145 145
146 + /**
147 + * Validates series tyeps.
148 + *
149 + * @since 1.0.1
150 + *
151 + * @static
152 + * @access protected
153 + * @param array $types The icoming series types.
154 + * @return boolean TRUE if sereis types are valid, otherwise FALSE.
155 + */
156 + protected static function _validateTypes( $types ) {
157 + $allowed_types = array( 'string', 'number', 'boolean', 'date', 'datetime', 'timeofday' );
158 + foreach ( $types as $type ) {
159 + if ( !in_array( $type, $allowed_types ) ) {
160 + return false;
161 + }
162 + }
163 +
164 + return true;
165 + }
166 +
146 167 }