메소드 | 설명 | |
---|---|---|
defaultAction ( ) | ||
editAction ( string $ccId = null ) | Edit cost center action | |
hasAccess ( ) | ||
moveProjectsAction ( string $ccId ) | Action for managing projects | |
notificationsAction ( string $ccId ) | ||
xGetMovingAverageToDateAction ( string $ccId, string $mode, string $date, string $startDate, string $endDate ) | xGetMovingAverageToDateAction | |
xGetPeriodDataAction ( string $ccId, string $mode, string $startDate, string $endDate ) | xGetPeriodDataAction | |
xListAction ( string $query = null, boolean $showArchived = false ) | xListAction | |
xMoveProjectsAction ( |
xMoveProjectsAction | |
xRemoveAction ( string $ccId ) | xRemoveAction | |
xSaveAction ( string $name, string $billingCode, string $leadEmail, integer $locked, string $ccId = null, string $description = null ) | xSaveAction | |
xSaveNotificationsAction ( string $ccId, |
메소드 | 설명 | |
---|---|---|
getCostCenterData ( Scalr\Stats\CostAnalytics\Entity\CostCentreEntity $cc, string $calculate = false ) : array | Gets cost centre properties and parameters | |
getCostCentersList ( string $query = null, boolean $showArchived = false ) : array | Gets the list of the cost centres | |
saveNotifications ( string $ccId, string $subjectType, array $settings ) | ||
saveReports ( string $ccId, array $settings ) |
public editAction ( string $ccId = null ) | ||
$ccId | string | optional Cost center identifier |
public moveProjectsAction ( string $ccId ) | ||
$ccId | string | Cost center identifier |
public xGetMovingAverageToDateAction ( string $ccId, string $mode, string $date, string $startDate, string $endDate ) | ||
$ccId | string | The identifier of the Cost center |
$mode | string | The mode |
$date | string | The date within specified period 'Y-m-d H:00' |
$startDate | string | The start date of the period 'Y-m-d' |
$endDate | string | The end date of the period 'Y-m-d' |
public xListAction ( string $query = null, boolean $showArchived = false ) | ||
$query | string | optional Search query |
$showArchived | boolean | optional show old archived cost centers |
public xMoveProjectsAction ( |
||
$projects | Projects that should be moved |
public xRemoveAction ( string $ccId ) | ||
$ccId | string | Cost center identifier |
public xSaveAction ( string $name, string $billingCode, string $leadEmail, integer $locked, string $ccId = null, string $description = null ) | ||
$name | string | Cost center name |
$billingCode | string | Cost center billing code |
$leadEmail | string | Cost center lead's email address |
$locked | integer | 1 if locked. 0 otherwise. |
$ccId | string | optional Cost center identifier |
$description | string | optional Description |
public xSaveNotificationsAction ( string $ccId, |
||
$ccId | string | |
$notifications |