/** * {@inheritdoc} */ public function statement($mdx, array $propertyList = null) { $propertyList = self::setDefault('Format', 'Multidimensional', $propertyList); $propertyList = self::setDefault('AxisFormat', 'TupleFormat', $propertyList); $propertyList = self::setDefault('DataSourceInfo', $this->dataSourceInfo, $propertyList); $propertyList = self::setDefault('Catalog', $this->catalogName, $propertyList); if ($propertyList['Format'] == 'Tabular') { $resultSet = new ResultSetTabular(strpos($mdx, 'DRILLTHROUGH') !== false); } else { $resultSet = new resultSet(); } $resultSet->hydrate($this->getSoapAdaptator()->execute($mdx, $propertyList)); return $resultSet; }
/** * {@inheritdoc} */ public function statement($mdx, array $propertyList = null) { $propertyList = self::setDefault('Format', 'Multidimensional', $propertyList); $propertyList = self::setDefault('AxisFormat', 'TupleFormat', $propertyList); $propertyList = self::setDefault('DataSourceInfo', $this->dataSourceInfo, $propertyList); $propertyList = self::setDefault('Catalog', $this->catalogName, $propertyList); $resultSet = new resultSet(); $resultSet->hydrate($this->getSoapAdaptator()->execute($mdx, $propertyList)); return $resultSet; }