Свойство | Тип | Описание | |
---|---|---|---|
$accountId | integer | Global by default | |
$archived | boolean | Whether the project has been archived | |
$ccId | string | Cost centre identifier (UUID) | |
$created | DateTime | The date the record was created on | |
$createdByEmail | string | Email address of the user who created record | |
$createdById | integer | Identifier of the user who created this project | |
$envId | integer | It's used only in combination with share type - 3 | |
$name | string | The name of the cost centre | |
$projectId | string | Project identifier (UUID) | |
$shared | integer | Share type |
Метод | Описание | |
---|---|---|
__construct ( ) | Constructor | |
checkRemoval ( ) : boolean | Checks whether project can be removed | |
delete ( ) | ||
getCostCenter ( ) : Scalr\Stats\CostAnalytics\Entity\CostCentreEntity | Gets parent Cost Center | |
getFarmsList ( ) : array | Get the list of the farms which are assigned to specified project | |
getProperties ( ) : |
Gets all collection of the properties for this cost centre | |
getProperty ( string $name, boolean $ignoreCache = false ) : string | null | Gets property with name | |
getQuarterlyBudget ( integer $year ) : |
Gets quarterly budget of specified year for the Project | |
hasAccessPermissions ( $user, $environment = null, $modify = null ) | ||
loadProperties ( ) | Loads all properties to entity | |
save ( ) | ||
saveProperty ( string $name, string $value ) : Scalr\Stats\CostAnalytics\Entity\CostCentreEntity | Saves property | |
setCostCenter ( Scalr\Stats\CostAnalytics\Entity\CostCentreEntity $cc = null ) : |
Sets a parent costcenter | |
setProperty ( string $name, string $value ) : Scalr\Stats\CostAnalytics\Entity\CostCentreEntity | Sets property with specified name |
public checkRemoval ( ) : boolean | ||
Результат | boolean | Returns TRUE if Project can be removed or false if it can be archived or throws an exception otherwise |
public getCostCenter ( ) : Scalr\Stats\CostAnalytics\Entity\CostCentreEntity | ||
Результат | Scalr\Stats\CostAnalytics\Entity\CostCentreEntity | Returns cost centre entity |
public getFarmsList ( ) : array | ||
Результат | array | Returns the array looks like [farm_id => name] |
public getProperties ( ) : |
||
Результат |
public getQuarterlyBudget ( integer $year ) : |
||
$year | integer | The year |
Результат | Returns collection of the QuarterlyBudgetEntity objects |
public hasAccessPermissions ( $user, $environment = null, $modify = null ) |
public saveProperty ( string $name, string $value ) : Scalr\Stats\CostAnalytics\Entity\CostCentreEntity | ||
$name | string | The unique name of the property |
$value | string | The value of the property |
Результат | Scalr\Stats\CostAnalytics\Entity\CostCentreEntity |
public setCostCenter ( Scalr\Stats\CostAnalytics\Entity\CostCentreEntity $cc = null ) : |
||
$cc | Scalr\Stats\CostAnalytics\Entity\CostCentreEntity | |
Результат |
public setProperty ( string $name, string $value ) : Scalr\Stats\CostAnalytics\Entity\CostCentreEntity | ||
$name | string | The unique name of the property |
$value | string | The value of the property |
Результат | Scalr\Stats\CostAnalytics\Entity\CostCentreEntity |
public bool $archived | ||
Результат | boolean |
public DateTime $created | ||
Результат | DateTime |
public string $createdByEmail | ||
Результат | string |
public int $createdById | ||
Результат | integer |
public int $envId | ||
Результат | integer |