/** * Returns a list of default viewDataTables ID to use when determining which visualization to use for multiple * reports. */ private static function getDefaultTypeViewDataTable() { if (null === self::$defaultViewTypes) { self::$defaultViewTypes = array(); /** * @ignore */ Piwik::postEvent('ViewDataTable.getDefaultType', array(&self::$defaultViewTypes)); } return self::$defaultViewTypes; }
/** * Returns a list of default viewDataTables ID to use when determining which visualization to use for multiple * reports. */ private static function getDefaultTypeViewDataTable() { if (null === self::$defaultViewTypes) { self::$defaultViewTypes = array(); /** * Triggered when gathering the default view types for all available reports. * * If you define your own report, you may want to subscribe to this event to * make sure the correct default Visualization is used (for example, a pie graph, * bar graph, or something else). * * If there is no default type associated with a report, the **table** visualization * used. * * **Example** * * public function getDefaultTypeViewDataTable(&$defaultViewTypes) * { * $defaultViewTypes['Referrers.getSocials'] = HtmlTable::ID; * $defaultViewTypes['Referrers.getUrlsForSocial'] = Pie::ID; * } * * @param array &$defaultViewTypes The array mapping report IDs with visualization IDs. */ Piwik::postEvent('ViewDataTable.getDefaultType', array(&self::$defaultViewTypes)); } return self::$defaultViewTypes; }