PHP Class Scalr_UI_Controller_Admin_Analytics_Projects

Inheritance: extends Scalr_UI_Controller, use trait Scalr\Stats\CostAnalytics\Forecast, use trait Scalr\UI\Controller\Admin\Analytics\NotificationTrait
显示文件 Open project: scalr/scalr

Public Methods

Method Description
addAction ( )
defaultAction ( )
editAction ( $projectId = null, $ccId = null )
hasAccess ( )
notificationsAction ( string $projectId )
xGetMovingAverageToDateAction ( string $projectId, string $mode, string $date, string $startDate, string $endDate, string $ccId = null ) xGetMovingAverageToDateAction
xGetPeriodDataAction ( string $projectId, string $mode, string $startDate, string $endDate ) xGetPeriodDataAction
xGetProjectFarmsTopUsageOnDateAction ( string | null $projectId, string $platform, string $mode, string $date, string $start, string $end, string $ccId = null ) xGetProjectFarmsTopUsageOnDateAction
xGetProjectWidgetAccountsAction ( ) xGetProjectWidgetAccountsAction
xListAction ( string $query = null, boolean $showArchived = false ) xListAction
xRemoveAction ( string $projectId ) xRemoveAction
xSaveAction ( string $ccId, string $projectId, string $name, string $description, string $billingCode, string $leadEmail, integer $shared, integer $accountId = null, boolean $checkAccountAccessToCc = true, boolean $grantAccountAccessToCc = false ) xSaveAction
xSaveNotificationsAction ( string $projectId, JsonData $notifications )

Private Methods

Method Description
getProjectData ( ProjectEntity $projectEntity, string $calculate = false ) : array Gets project properties and parameters
getProjectsList ( string $query = null, boolean $showArchived = false ) : array Gets an array of projects' data
getWidget ( array $values ) : array Gets data for dropdown shared type fields on project edbit page
getWidgetAccounts ( ) : array Gets list of accounts for widget

Method Details

addAction() public method

public addAction ( )

defaultAction() public method

public defaultAction ( )

editAction() public method

public editAction ( $projectId = null, $ccId = null )

hasAccess() public method

public hasAccess ( )

notificationsAction() public method

public notificationsAction ( string $projectId )
$projectId string

xGetMovingAverageToDateAction() public method

xGetMovingAverageToDateAction
public xGetMovingAverageToDateAction ( string $projectId, string $mode, string $date, string $startDate, string $endDate, string $ccId = null )
$projectId string The identifier of the project
$mode string The mode
$date string The UTC date within period ('Y-m-d H:00')
$startDate string The start date of the period in UTC ('Y-m-d')
$endDate string The end date of the period in UTC ('Y-m-d')
$ccId string optional The identifier of the cost center (It is used only when project is null)

xGetPeriodDataAction() public method

xGetPeriodDataAction
public xGetPeriodDataAction ( string $projectId, string $mode, string $startDate, string $endDate )
$projectId string The identifier of the project (UUID)
$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)

xGetProjectFarmsTopUsageOnDateAction() public method

xGetProjectFarmsTopUsageOnDateAction
public xGetProjectFarmsTopUsageOnDateAction ( string | null $projectId, string $platform, string $mode, string $date, string $start, string $end, string $ccId = null )
$projectId string | null The identifier of the project
$platform string The cloud platform
$mode string The mode
$date string The UTC date within period ('Y-m-d H:00')
$start string The start date of the period in UTC ('Y-m-d')
$end string The end date of the period in UTC ('Y-m-d')
$ccId string optional The identifier of the cost center (It is used only when project is null)

xGetProjectWidgetAccountsAction() public method

xGetProjectWidgetAccountsAction

xListAction() public method

xListAction
public xListAction ( string $query = null, boolean $showArchived = false )
$query string optional Search query
$showArchived boolean optional show old archived projects

xRemoveAction() public method

xRemoveAction
public xRemoveAction ( string $projectId )
$projectId string Identifier of the project

xSaveAction() public method

xSaveAction
public xSaveAction ( string $ccId, string $projectId, string $name, string $description, string $billingCode, string $leadEmail, integer $shared, integer $accountId = null, boolean $checkAccountAccessToCc = true, boolean $grantAccountAccessToCc = false )
$ccId string
$projectId string
$name string
$description string
$billingCode string
$leadEmail string
$shared integer
$accountId integer optional
$checkAccountAccessToCc boolean optional
$grantAccountAccessToCc boolean optional

xSaveNotificationsAction() public method

public xSaveNotificationsAction ( string $projectId, JsonData $notifications )
$projectId string
$notifications Scalr\UI\Request\JsonData