/** * Returns an array containing the information of the generic Piwik_DataTable_Filter * to be applied automatically to the data resulting from the API calls. * * Order to apply the filters: * 1 - Filter that remove filtered rows * 2 - Filter that sort the remaining rows * 3 - Filter that keep only a subset of the results * 4 - Presentation filters * * @return array See the code for spec */ public static function getGenericFiltersInformation() { if (is_null(self::$genericFiltersInfo)) { self::$genericFiltersInfo = array('Pattern' => array('filter_column' => array('string', 'label'), 'filter_pattern' => array('string')), 'PatternRecursive' => array('filter_column_recursive' => array('string', 'label'), 'filter_pattern_recursive' => array('string')), 'ExcludeLowPopulation' => array('filter_excludelowpop' => array('string'), 'filter_excludelowpop_value' => array('float', '0')), 'AddColumnsProcessedMetrics' => array('filter_add_columns_when_show_all_columns' => array('integer')), 'AddColumnsProcessedMetricsGoal' => array('filter_update_columns_when_show_all_goals' => array('integer'), 'idGoal' => array('string', Piwik_DataTable_Filter_AddColumnsProcessedMetricsGoal::GOALS_OVERVIEW)), 'Sort' => array('filter_sort_column' => array('string'), 'filter_sort_order' => array('string', 'desc')), 'Truncate' => array('filter_truncate' => array('integer')), 'Limit' => array('filter_offset' => array('integer', '0'), 'filter_limit' => array('integer'), 'keep_summary_row' => array('integer', '0'))); } return self::$genericFiltersInfo; }