Class ProjectTime

Description

reflects one row in table Project_Times

one row is identified by project_id, worker_id and date

  • uses: Time
  • uses: Date
  • version: $Id: workday.class.php,v 1.6 2003/09/24 16:21:48 cybot_tm Exp $

Located in Program_Root/include/projecttime.class.php (line 20)


	
			
Variable Summary
Method Summary
bool ProjectTime (object Date $date, int $project_id, int $worker_id)
int GetCompanyId ()
int GetProjectId ()
int GetWorkerId ()
bool Load ()
bool Save ()
bool SetCompanyId (int $company_id)
bool SetDate ([mixed $date = null])
bool SetProjectId (int $project_id)
bool SetTime ([mixed $time = null])
bool SetWorkerId (int $worker_id)
Variables
int $company_id (line 41)
object Date $date (line 47)
int $project_id (line 27)
object Time $time (line 53)
int $worker_id (line 34)
Methods
Constructor ProjectTime (line 67)
bool ProjectTime (object Date $date, int $project_id, int $worker_id)
  • object Date $date
  • int $project_id: project_id
  • int $worker_id: worker_id
GetCompanyId (line 98)
int GetCompanyId ()
GetDate (line 80)
object Date GetDate ()
GetProjectId (line 92)
int GetProjectId ()
GetWorkerId (line 86)
int GetWorkerId ()
Load (line 199)

Loads Object from Database

bool Load ()
Save (line 234)

Saves Object to Database

bool Save ()
SetCompanyId (line 173)

Sets company_id

bool SetCompanyId (int $company_id)
  • int $company_id: company_id
SetDate (line 109)

Sets current date

bool SetDate ([mixed $date = null])
  • mixed $date: date object date or string
SetProjectId (line 160)

Sets project_id

bool SetProjectId (int $project_id)
  • int $project_id: project_id
SetTime (line 129)

Sets time taken for project

bool SetTime ([mixed $time = null])
  • mixed $time: time object time or string
SetWorkerId (line 147)

Sets worker_id

bool SetWorkerId (int $worker_id)
  • int $worker_id: worker_id

Documentation generated on Fri, 26 Sep 2003 15:39:54 +0200 by phpDocumentor 1.2.2