PHP Class Scalr_UI_Controller_Account2_Analytics_Projects

Inheritance: extends Scalr_UI_Controller, use trait Scalr\Stats\CostAnalytics\Forecast, use trait Scalr\UI\Controller\Account2\Analytics\NotificationTrait
Datei anzeigen Open project: scalr/scalr

Public Methods

Method Description
addAction ( $projectId = null )
defaultAction ( ) Default action
editAction ( string $projectId = null ) Edit project action
hasAccess ( )
notificationsAction ( string $projectId )
xGetPeriodDataAction ( string $projectId, string $mode, string $startDate, string $endDate ) xGetPeriodProjectDataAction
xListAction ( string $query = null ) List projects action
xRemoveAction ( string $projectId ) xRemoveAction
xSaveAction ( string $projectId, string $name, string $description, string $billingCode, string $leadEmail, string $ccId = null ) xSaveAction
xSaveNotificationsAction ( string $projectId, JsonData $notifications )

Private Methods

Method Description
getProjectData ( ProjectEntity $projectEntity ) : array Gets project properties and parameters
getProjectsList ( string $query = null ) : array Gets a list of projects by key

Method Details

addAction() public method

public addAction ( $projectId = null )

defaultAction() public method

Default action
public defaultAction ( )

editAction() public method

Edit project action
public editAction ( string $projectId = null )
$projectId string

hasAccess() public method

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

notificationsAction() public method

public notificationsAction ( string $projectId )
$projectId string

xGetPeriodDataAction() public method

xGetPeriodProjectDataAction
public xGetPeriodDataAction ( string $projectId, string $mode, string $startDate, string $endDate )
$projectId string The identifier of the project
$mode string The mode (week, month, quarter, year)
$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')

xListAction() public method

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

xRemoveAction() public method

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

xSaveAction() public method

xSaveAction
public xSaveAction ( string $projectId, string $name, string $description, string $billingCode, string $leadEmail, string $ccId = null )
$projectId string
$name string
$description string
$billingCode string
$leadEmail string
$ccId string optional

xSaveNotificationsAction() public method

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