PHP Класс Whups_Reports, horde

Copyright 2002-2016 Horde LLC (http://www.horde.org/) See the enclosed file LICENSE for license information (BSD). If you did not receive this file, see http://www.horde.org/licenses/bsdl.php.
Автор: Chuck Hagenbuch ([email protected])
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_alltickets array Local cache of ticket sets
$_backend Whups_Driver
$_closedtickets array Local cache of closed tickets
$_opentickets array Local cache of open tickets

Открытые методы

Метод Описание
__construct ( Whups_Driver $whups_driver ) : Whups_Reports Constructor
_updateDataSet ( array &$dataset, integer $index, mixed $newdata, string $operation ) Update the dataset
getDataSet ( string $report ) : array Get the data set
getTime ( $stat, string $group_by = null ) : integer | array Returns a time (max, min, avg) that tickets are in a particular state (open, assigned, etc.).

Защищенные методы

Метод Описание
_getTicketSet ( string $type, boolean $expanded = false ) : array Loads a set of tickets, and cache the result inside the Whups_Reports:: object to save on database access.

Описание методов

__construct() публичный Метод

Constructor
public __construct ( Whups_Driver $whups_driver ) : Whups_Reports
$whups_driver Whups_Driver The backend driver
Результат Whups_Reports

_getTicketSet() защищенный Метод

Loads a set of tickets, and cache the result inside the Whups_Reports:: object to save on database access.
protected _getTicketSet ( string $type, boolean $expanded = false ) : array
$type string 'open', 'closed', or 'all' - the set of tickets to fetch. A previously cached set will be returned if it is available.
$expanded boolean List tickets once for each owner of the ticket?
Результат array The ticket set.

_updateDataSet() публичный Метод

Update the dataset
public _updateDataSet ( array &$dataset, integer $index, mixed $newdata, string $operation )
$dataset array The dataset.
$index integer The index to update.
$newdata mixed The new data to insert.
$operation string The operation being performed.

getDataSet() публичный Метод

Get the data set
public getDataSet ( string $report ) : array
$report string The report
Результат array The dataset

getTime() публичный Метод

Returns a time (max, min, avg) that tickets are in a particular state (open, assigned, etc.).
public getTime ( $stat, string $group_by = null ) : integer | array
$group_by string A ticket property by which to group the results.
Результат integer | array The time value requested, or an array of values, if the $group_by parameter has been specified.

Описание свойств

$_alltickets защищенное свойство

Local cache of ticket sets
protected array $_alltickets
Результат array

$_backend защищенное свойство

protected Whups_Driver $_backend
Результат Whups_Driver

$_closedtickets защищенное свойство

Local cache of closed tickets
protected array $_closedtickets
Результат array

$_opentickets защищенное свойство

Local cache of open tickets
protected array $_opentickets
Результат array