public function adjustReferencePointColumn(AbstractMetaModel $metamodel, $datasetName, $columnName) { // FIXME we should work only with one way to find a cube $cube = $metamodel->findCubeByDatasetName($datasetName); if (!isset($cube)) { $cube = $metamodel->getCube($datasetName); } $dimension = $cube->getDimension($columnName); $shared = FALSE; return array($dimension->datasetName, 'value', $shared); }
public function adjustReferencePointColumn(AbstractMetaModel $metamodel, $datasetName, $columnName) { // FIXME we should work only with one way to find a cube $cube = $metamodel->findCubeByDatasetName($this->datasetName); if (!isset($cube)) { $cube = $metamodel->getCube($this->datasetName); } $adjustedDatasetName = $cube->factsDatasetName; $adjustedDataset = $metamodel->getDataset($adjustedDatasetName); $adjustedColumnName = $adjustedDataset->getKeyColumn()->name; $shared = TRUE; return array($adjustedDatasetName, $adjustedColumnName, $shared); }