PHP Class Scalr_UI_Controller_Account2_Analytics_Budgets

Inheritance: extends Scalr_UI_Controller, use trait Scalr\Stats\CostAnalytics\Forecast
Datei anzeigen Open project: scalr/scalr

Public Methods

Method Description
defaultAction ( )
hasAccess ( )
xGetBudgetInfoAction ( integer $year, string $ccId = null, string $projectId = null ) xGetBudgetInfoAction
xListAction ( string $ccId = null, string $quarter = null, integer $year = null, string $query = null ) xListAction
xSaveAction ( )

Protected Methods

Method Description
getBudgetInfo ( integer $year, string $ccId = null, string $projectId = null ) Gets budgeted cost for all quarters of specified year

Private Methods

Method Description
getCostCenterData ( Scalr\Stats\CostAnalytics\Entity\CostCentreEntity $cc, Scalr\Stats\CostAnalytics\QuarterPeriod $period ) : array Gets budget data for specified CC and period
getNodesList ( $period, $ccId = null, $query = null ) : array Gets the list of the cost centres
getProjectData ( ProjectEntity $projectEntity, Scalr\Stats\CostAnalytics\QuarterPeriod $period, boolean $includeRelationDependentBudget = false ) : array Gets budget data for specified Project and period

Method Details

defaultAction() public method

public defaultAction ( )

getBudgetInfo() protected method

Gets budgeted cost for all quarters of specified year
protected getBudgetInfo ( integer $year, string $ccId = null, string $projectId = null )
$year integer The year
$ccId string optional The identifier of the cost centre or parent cost centre
$projectId string optional The identifier of the project

hasAccess() public method

public hasAccess ( )

xGetBudgetInfoAction() public method

xGetBudgetInfoAction
public xGetBudgetInfoAction ( integer $year, string $ccId = null, string $projectId = null )
$year integer The year
$ccId string optional The identifier of the cost centre or parent cost centre
$projectId string optional The identifier of the project

xListAction() public method

xListAction
public xListAction ( string $ccId = null, string $quarter = null, integer $year = null, string $query = null )
$ccId string optional Identifier of the cost center
$quarter string optional Current Quarter number
$year integer optional Current year
$query string optional Search query

xSaveAction() public method

public xSaveAction ( )