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])
파일 보기 프로젝트 열기: horde/horde

보호된 프로퍼티들

프로퍼티 타입 설명
$_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