[ Index ]
 

Code source de eGroupWare 1.2.106-2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/projectmanager/inc/ -> class.datasource.inc.php (sommaire)

constants for the different types of data or'ed together eg. for egw_pm_eletemts.pe_overwrite

Poids: 327 lignes (11 kb)
Inclus ou requis: 7 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

datasource:: (4 méthodes):
  datasource()
  get()
  read()
  element_values()


Classe: datasource  - X-Ref

DataSource baseclass of the ProjectManager

This is the baseclass of all DataSources, each spezific DataSource extends it and implement
an own get method.

The read method of this class sets (if not set by the get method) the planned start- and endtime:
- planned start from the end of a start constrain or the project start-time
- planned end from the planned time and a start-time
- real or planned start and end from each other

datasource($type=null)   X-Ref
Constructor

param: string $type=null type of the datasource

get($data_id)   X-Ref
get an item from the underlaying app and convert applying data ia a datasource array

A datasource array can contain values for the keys: completiton, {planned|used}_time, {planned|used}_budget,
{planned|real}_start, {planned|real}_end and pe_status
Not set values mean they are not supported by the datasource.

Reimplent this function for spezial datasource types (not read!)

param: mixed $data_id id as used in the link-class for that app, or complete entry as array
return: array/boolean array with the data supported by that source or false on error (eg. not found, not availible)

read($data_id,$pe_data=null)   X-Ref
read an item from a datasource (via the get methode) and try to set (guess) some not supported values

A datasource array can contain values for the keys: completiton, {planned|used}_time, {planned|used}_budget,
{planned|real}_start, {planned|real}_end
Not set values mean they are not supported by the datasource.

param: mixed $data_id id as used in the link-class for that app, or complete entry as array
param: array $pe_data data of the project-element or null, eg. to use the constraints
return: array/boolean array with the data supported by that source or false on error (eg. not found, not availible)

element_values($data)   X-Ref
reading the not-overwritten values from the element-data

Can be used instead of read, if there's no read-access to the datasource itself

param: array $data element data
return: array



Généré le : Sun Feb 25 17:20:01 2007 par Balluche grâce à PHPXref 0.7