Core::Facade::arbitCouchDbProjectFacade
Class arbitCouchDbProjectFacade
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.
Implements interfaces:
arbitCouchDbFacadeBase
|
--arbitCouchDbProjectFacade
Author(s):
|
Version:
|
$Revision: 1236 $ |
|
License:
|
GPL |
Inherited Member Variables
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. |
Inherited Methods
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(
'foo',
'bar',
),
),
Implementation of:
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(
'foo',
'bar',
),
),
Parameters:
| Name |
Type |
Description |
$data |
array |
|
Implementation of:
|