PHP Class Scalr_UI_Controller_Analytics_Farms

Since: 5.0
Author: Vlad Dobrovolskiy ([email protected])
Inheritance: extends Scalr_UI_Controller, use trait Scalr\Stats\CostAnalytics\Forecast
ファイルを表示 Open project: scalr/scalr

Public Methods

Method Description
defaultAction ( ) Default action
hasAccess ( )
xGetPeriodDataAction ( integer $farmId, string $mode, string $startDate, string $endDate ) xGetPeriodDataAction
xListAction ( string $query = null ) List farms action

Private Methods

Method Description
getFarmData ( DBFarm $dbFarm ) : array Gets farm properties and parameters
getFarmRoleTopSpender ( array $farmRoles ) : array Gets farm role with top cost
getFarmsList ( string $query = null ) : array Gets the list of farms

Method Details

defaultAction() public method

Default action
public defaultAction ( )

hasAccess() public method

See also: Scalr_UI_Controller::hasAccess()
public hasAccess ( )

xGetPeriodDataAction() public method

xGetPeriodDataAction
public xGetPeriodDataAction ( integer $farmId, string $mode, string $startDate, string $endDate )
$farmId integer The identifier of the farm
$mode string Mode (week, month, quarter, year, custom)
$startDate string Start date in UTC (Y-m-d)
$endDate string End date in UTC (Y-m-d)

xListAction() public method

List farms action
public xListAction ( string $query = null )
$query string optional Search query