You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -201,7 +210,7 @@ public function handleQuery(string $query, array $params): string
201
210
$response = '';
202
211
203
212
try {
204
-
if (!($this->dbinstanceofPDO)) {
213
+
if (!$this->dbinstanceofPDO) {
205
214
thrownewVisualization_Error('You must pass a PDO connection to the MC Google Visualization Server if you want to let the server handle the entire request');
206
215
}
207
216
@@ -244,10 +253,10 @@ public function handleQuery(string $query, array $params): string
244
253
*
245
254
* @param array $query the visualization query broken up into sections
246
255
*
256
+
* @return array the metadata array from merging the query with the entity table definitions
257
+
*
247
258
* @throws Visualization_QueryError
248
259
* @throws Visualization_Error
249
-
*
250
-
* @return array the metadata array from merging the query with the entity table definitions
@@ -410,6 +419,8 @@ public function generateMetadata(array $query): array
410
419
* @param string $name the name of the entity - should be used in the "from" clause of visualization queries
411
420
* @param array $spec optional spec array with keys "fields", "joins", "table", and "where" to define the mapping between visualization queries and SQL queries
@@ -605,12 +616,12 @@ public function getRowValues(array $row, array $meta): string
605
616
*
606
617
* @param string $query the visualization query to run
607
618
*
619
+
* @return string the SQL that should be sent to the database
620
+
*
608
621
* @throws Visualization_QueryError
609
622
* @throws Visualization_Error
610
623
* @throws ParseError
611
624
* @throws DefError
612
-
*
613
-
* @return string the SQL that should be sent to the database
614
625
*/
615
626
publicfunctiongetSQL(string$query): string
616
627
{
@@ -623,9 +634,9 @@ public function getSQL(string $query): string
623
634
/**
624
635
* Use MC_Parser to generate a grammar that matches the query language specified here: http://code.google.com/apis/visualization/documentation/querylanguage.html.
625
636
*
626
-
* @throws DefError
627
-
*
628
637
* @return Def the grammar for the query language
638
+
*
639
+
* @throws DefError
629
640
*/
630
641
publicfunctiongetGrammar(): Def
631
642
{
@@ -693,11 +704,11 @@ public function getGrammar(): Def
693
704
*
694
705
* @param string $str the query string to parse
695
706
*
707
+
* @return array the parsed query as an array, keyed by each part of the query (select, from, where, groupby, pivot, orderby, limit, offset, label, format, options
708
+
*
696
709
* @throws ParseError
697
710
* @throws Visualization_QueryError
698
711
* @throws Parser\DefError
699
-
*
700
-
* @return array the parsed query as an array, keyed by each part of the query (select, from, where, groupby, pivot, orderby, limit, offset, label, format, options
* @param array $spec the metadata for the field as a set of key-value pairs - allowed keys are "field", "callback", "fields", "extra", "sort_field", "type", and "join"
0 commit comments