Finds a top level report that provides stats for a specific Dimension.
public static getForDimension ( |
||
$dimension | The dimension whose report we're looking for. | |
리턴 | The |
private function setPivotByDimension($pivotByDimension) { $this->pivotByDimension = Dimension::factory($pivotByDimension); if (empty($this->pivotByDimension)) { throw new Exception("Invalid dimension '{$pivotByDimension}'."); } $this->pivotDimensionReport = Report::getForDimension($this->pivotByDimension); }
public function test_getForDimension_ShouldReturnNullIfReportPluginNotLoaded() { PluginManager::getInstance()->loadPlugins(array()); $report = Report::getForDimension(new Keyword()); $this->assertNull($report); }