@@ 713-723 (lines=11) @@ | ||
710 | $queryParams = array(); |
|
711 | $path = 'Tables'; |
|
712 | ||
713 | if (is_null($options)) { |
|
714 | $options = new QueryTablesOptions(); |
|
715 | } elseif (is_string($options)) { |
|
716 | $prefix = $options; |
|
717 | $options = new QueryTablesOptions(); |
|
718 | $options->setPrefix($prefix); |
|
719 | } elseif ($options instanceof Filter) { |
|
720 | $filter = $options; |
|
721 | $options = new QueryTablesOptions(); |
|
722 | $options->setFilter($filter); |
|
723 | } |
|
724 | ||
725 | $query = $options->getQuery(); |
|
726 | $next = $options->getNextTableName(); |
|
@@ 1039-1049 (lines=11) @@ | ||
1036 | $queryParams = array(); |
|
1037 | $path = $table; |
|
1038 | ||
1039 | if (is_null($options)) { |
|
1040 | $options = new QueryEntitiesOptions(); |
|
1041 | } elseif (is_string($options)) { |
|
1042 | $queryString = $options; |
|
1043 | $options = new QueryEntitiesOptions(); |
|
1044 | $options->setFilter(Filter::applyQueryString($queryString)); |
|
1045 | } elseif ($options instanceof Filter) { |
|
1046 | $filter = $options; |
|
1047 | $options = new QueryEntitiesOptions(); |
|
1048 | $options->setFilter($filter); |
|
1049 | } |
|
1050 | ||
1051 | $queryParams = $this->addOptionalQuery($queryParams, $options->getQuery()); |
|
1052 |