Tapper Team > Tapper-Reports-Web-4.1.2 > Tapper::Reports::Web::Util::Filter

Download:
Tapper-Reports-Web-4.1.2.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  0
View/Report Bugs
Module Version: 4.1.2   Source  

NAME ^

Tapper::Reports::Web::Util::Filter

date

Add a date to late filters. Furthermore, it sets the days value. Date used to filter for the number of days (now provided by function 'days'). For backwards compatibility it checks whether the input to mean day rather than days and forwards accordingly.

@param hash ref - current version of filters @param string - date

@return hash ref - updated filters

parse_filters

Parse filter arguments given by controller. The function expects an array ref containing the filter arguments. This is achieved by providing the arguments that Catalyst provide for a sub with :Args().

The second argument is a list of word that are valid filters.

The function returns a hash ref containing the following elements (not necessarily all every time): * early - hash ref - contains the filter conditions that can be given in the initial search on reports * late - array ref - list of hash refs that contain filter conditions which shall be applied as $report->search{$key => $value} after the initial search returned a $report already * function - hash ref - functions that are to be applied as $report->$key($value); * error - array ref - contains all errors that occured as strings * days - int - number of days that will be shown * date - string - the exact date that will be shown

@param array ref - list of filter arguments @param array ref - list of allowed filters

@return hash ref

AUTHOR ^

AMD OSRC Tapper Team <tapper@amd64.org>

COPYRIGHT AND LICENSE ^

This software is Copyright (c) 2012 by Advanced Micro Devices, Inc..

This is free software, licensed under:

  The (two-clause) FreeBSD License
syntax highlighting: