Core::Facade::arbitProjectFacade
Interface arbitProjectFacade
Project facade defining all methods required to access project related data in the backend. Project facade defining all methods required to access project related data in the backend.
Author(s):
|
Version:
|
$Revision: 1236 $ |
|
License:
|
GPL |
Method Summary
|
public array |
getProjectData(
)
Get project data
Return a sorted list with the version strings for the current project. |
|
public void |
setProjectData(
$data
)
Set project data
Store versions or component array (or both). in the same structure the getProjectData() returns. |
Methods
getProjectData
array
getProjectData(
)
Get project data
Return a sorted list with the version strings for the current project. Get project data
Return a sorted list with the version strings for the current project. There should not be any assumptions made on version sorting, but the order should be always returned the same way it has been provided by the user. Each version is associated with its state, which is an integer in (0 = inactive, 1 = active).
The returned project data array also contains a list of components, which do not have any structure or order associated.
The array looks like: array(
versions => array(
'0.1' => 0,
'1.0' => 1,
....
),
components => array(
'website' => array(),
'project' => array(
'backend' => array(),
'frontend' => array(),
),
),
),
setProjectData
void
setProjectData(
$data
)
Set project data
Store versions or component array (or both). in the same structure the getProjectData() returns. Set project data
Store versions or component array (or both). The data has to be provided in the same structure the getProjectData() returns.
The array looks like: array(
versions => array(
'0.1' => 0,
'1.0' => 1,
....
),
components => array(
'website' => array(),
'project' => array(
'backend' => array(),
'frontend' => array(),
),
),
),
Parameters:
| Name |
Type |
Description |
$data |
array |
|
|