Class Company

Description

Class Company reflects Table company

Located in Program_Root/include/company.class.php (line 14)


	
			
Variable Summary
int $id
string $name
int $numpids
array $pidhours
array $pids
array $workers
Method Summary
bool Company (int $company_id)
void db_insert ()
void GetId ()
void GetName ()
void GetNumPids ()
void GetNumWorkers ()
void GetSelectBox ([mixed $only_active = true], mixed $selected_company_id)
void get_hours_for_pid (mixed $project_id)
void get_pids ()
void get_workers ()
void modify_form (mixed $template)
void report_form (mixed $template)
void SetId (mixed $company_id)
void SetName (mixed $company_name)
void SetNumPids (mixed $numpids)
void SetNumWorkers (mixed $numworkers)
bool update_db ()
Variables
int $id = 0 (line 21)
  • var: Company ID
  • since: 2003-08-31
  • access: protected
string $name = '' (line 28)
  • var: Company Name
  • since: 2003-08-31
  • access: protected
int $numpids = 0 (line 49)
  • var: Number of Projects
  • since: 2003-08-31
  • access: protected
int $numworkers = 0 (line 35)
  • var: Number of Workers in this Company
  • since: 2003-08-31
  • access: protected
array $pidhours (line 63)
  • var: Project-ID => Project-Hours
  • since: 2003-08-31
  • access: protected
array $pids (line 56)
  • var: Project-ID => Project-Name
  • since: 2003-08-31
  • access: protected
array $workers (line 42)
  • var: Worker-ID => Worker-Name
  • since: 2003-08-31
  • access: protected
Methods
Constructor Company (line 69)
  • return: success
bool Company (int $company_id)
  • int $company_id: Company ID
db_insert (line 130)
void db_insert ()
GetId (line 87)
void GetId ()
GetName (line 88)
void GetName ()
GetNumPids (line 89)
void GetNumPids ()
GetNumWorkers (line 90)
void GetNumWorkers ()
GetSelectBox (line 248)
  • static:
void GetSelectBox ([mixed $only_active = true], mixed $selected_company_id)
get_hours_for_pid (line 140)
void get_hours_for_pid (mixed $project_id)
get_pids (line 149)
void get_pids ()
get_workers (line 165)
void get_workers ()
modify_form (line 217)
void modify_form (mixed $template)
report_form (line 185)
void report_form (mixed $template)
SetId (line 93)
void SetId (mixed $company_id)
SetName (line 99)
void SetName (mixed $company_name)
SetNumPids (line 105)
void SetNumPids (mixed $numpids)
SetNumWorkers (line 111)
void SetNumWorkers (mixed $numworkers)
update_db (line 121)

saves Object in DB

  • return: success
bool update_db ()

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