Class Project

Description

Class Project reflects access to tables project*

Located in Program_Root/include/project.class.php (line 13)


	
			
Variable Summary
Method Summary
Project Project (int $project_id)
void check_for_subpid_id (mixed $subpid, mixed $pid)
void Delete ()
void detail_report (mixed $template, mixed $worker_id)
void GetCountWorker ()
void GetDate ()
void GetDescription ()
void GetFullName ()
void GetHours ()
void GetId ()
void GetName ()
void GetParentName ()
void GetParentPidId ()
void GetPriority ()
array GetPriorityArray ()
string GetPrioritySelectBox ([mixed $selected_priority_id = false])
array GetProjectArray ([bool $only_active = true])
string GetSelectBox ([bool $only_active = true], [mixed $selected_project_id = false])
void GetStatus ()
array GetStatusArray ()
string GetStatusSelectBox ([mixed $selected_status_id = false])
array GetTaskArray ()
string GetTaskSelectBox ([mixed $selected_task_id = false], mixed $selected_type_id)
void GetType ()
array GetTypeArray ()
string GetTypeSelectBox ([mixed $selected_type_id = false])
void GetWorker ()
void GetWorkerId ()
void get_dbindex ()
void get_hours_for_worker (mixed $workerid)
void get_name ()
void get_status ()
void get_workers ()
void IsChildPid ()
array LoadSubProject ()
void LoadWorker ()
void modify_form (mixed $template)
void report_form (mixed $template, mixed $type)
bool Save ()
void SetDate (mixed $date)
void SetDescription (mixed $description)
void SetId (mixed $project_id)
void SetName (mixed $project_name)
void SetParentName (mixed $parent_name)
void SetParentProjectId (mixed $parent_project_id)
void SetPriority (mixed $priority)
void SetStatus (mixed $project_status)
void SetType (mixed $project_type)
void SetWorkerId (mixed $worker_id)
void set_name (mixed $newname)
void set_status (mixed $newstatus)
void UpdateStatus (mixed $status)
Variables
int $aggregate_period = 0 (line 48)
  • var: Project Hours taken so far
  • since: 2003-08-31
  • access: protected
string $description = '' (line 114)
  • var: Project description
  • since: 2003-08-31
  • access: protected
int $id = 0 (line 20)
  • var: Project ID, equal to unique DB-Index
  • since: 2003-08-31
  • access: protected
string $name = '' (line 27)
  • var: Project Name
  • since: 2003-08-31
  • access: protected
int $numworkers = 0 (line 64)
  • var: number of Workers in array $workers
  • deprecated:
  • since: 2003-08-31
  • access: protected
string $parent_name = '' (line 34)
  • var: Parent Project Name
  • since: v1.19
  • access: protected
int $parent_project_id = 0 (line 86)
  • var: ID from Parent-Project
  • since: 2003-08-31
  • access: protected
int $status = 0 (line 41)
  • var: Project Status (open, closed, active, ..))
  • since: 2003-08-31
  • access: protected
array $sub_project = array() (line 79)
  • var: Array of Sub-Projects
  • since: 2003-08-31
  • access: protected
string $type = 'P' (line 107)
  • var: project-type
  • since: 2003-08-31
  • access: protected
object Worker $worker = null (line 100)
  • since: 2003-08-31
  • access: public
array $workerhours (line 72)
  • var: Array of Workerhours in this Project (worker_id => worker_hours)
  • deprecated:
  • since: 2003-08-31
  • access: protected
array $workers (line 56)
  • var: Array of Workers with Hours in this Project (worker_id => worker_name)
  • deprecated:
  • since: 2003-08-31
  • access: protected
int $worker_id = 0 (line 93)
  • var: ID of main worker for this project
  • since: 2003-08-31
  • access: protected
Methods
Constructor Project (line 119)
Project Project (int $project_id)
  • int $project_id: project_id
check_for_subpid_id (line 819)
  • todo: viel!
void check_for_subpid_id (mixed $subpid, mixed $pid)
Delete (line 481)
void Delete ()
detail_report (line 262)
void detail_report (mixed $template, mixed $worker_id)
getAdditionalTeilleistungen (line 318)
void getAdditionalTeilleistungen ()
GetCountWorker (line 425)
void GetCountWorker ()
GetDate (line 223)
void GetDate ()
GetDescription (line 224)
void GetDescription ()
GetFullName (line 225)
void GetFullName ()
GetHours (line 383)
void GetHours ()
GetId (line 226)
void GetId ()
GetName (line 227)
void GetName ()
GetParentName (line 228)
void GetParentName ()
GetParentPidId (line 252)
void GetParentPidId ()
GetParentProjectId (line 229)
void GetParentProjectId ()
GetPriority (line 230)
void GetPriority ()
GetPriorityArray (line 606)

Creates an array priority-id => priority-name from all priority in Database and returns it

  • return: priority_id => priority_name
  • static:
array GetPriorityArray ()
GetPrioritySelectBox (line 632)

Creates a Selectbox from all Prioritys in Database and returns the HTML-Code

if $selected_priority_id > (int) 0 then the priority with this ID is preselcted if $selected_priority_id === (bool) true then the priority with ID == $this->id is selected else no pre-selected priority

  • return: HTML-Code for Selectbox with prioritys
  • static:
string GetPrioritySelectBox ([mixed $selected_priority_id = false])
  • mixed $selected_priority_id: preselected priority
GetProjectArray (line 550)

Creates an array project-id => project-name from all Projects in Database and returns it

  • return: project_id => project_name
  • todo: name is confusing, there should be a better one
  • static:
array GetProjectArray ([bool $only_active = true])
  • bool $only_active: Return only active Projects
GetSelectBox (line 578)

Creates a Selectbox from all Projects in Database and returns the HTML-Code

if $selected_project_id > (int) 0 then the Project with this ID is preselcted if $selected_project_id === (bool) true then the Project with ID == $this->id is selected else no pre-selected Project

  • return: HTML-Code for Selectbox with Projects
  • todo: name is confusing, there should be a better one
  • static:
string GetSelectBox ([bool $only_active = true], [mixed $selected_project_id = false])
  • bool $only_active: Return only active Projects
  • mixed $selected_project_id: preselected Project
GetStatus (line 231)
void GetStatus ()
GetStatusArray (line 660)

Creates an array status-id => status-name from all status in Database and returns it

  • return: status_id => status_name
  • static:
array GetStatusArray ()
GetStatusSelectBox (line 686)

Creates a Selectbox from all status in Database and returns the HTML-Code

if $selected_status_id > (int) 0 then the status with this ID is preselcted if $selected_status_id === (bool) true then the status with ID == $this->status is selected else no pre-selected status

  • return: HTML-Code for Selectbox with status
  • static:
string GetStatusSelectBox ([mixed $selected_status_id = false])
  • mixed $selected_status_id: preselected status
GetTaskArray (line 768)

Creates an array status-id => status-name from all status in Database and returns it

  • return: status_id => status_name
  • static:
array GetTaskArray ()
GetTaskSelectBox (line 794)

Creates a Selectbox from all task in Database and returns the HTML-Code

if $selected_type_id > (int) 0 then the type with this ID is preselcted if $selected_type_id === (bool) true then the type with ID == $this->type is selected else no pre-selected status

  • return: HTML-Code for Selectbox with types
  • static:
string GetTaskSelectBox ([mixed $selected_task_id = false], mixed $selected_type_id)
  • mixed $selected_type_id: preselected type
GetType (line 232)
void GetType ()
GetTypeArray (line 714)

Creates an array status-id => status-name from all status in Database and returns it

  • return: status_id => status_name
  • static:
array GetTypeArray ()
GetTypeSelectBox (line 740)

Creates a Selectbox from all types in Database and returns the HTML-Code

if $selected_type_id > (int) 0 then the type with this ID is preselcted if $selected_type_id === (bool) true then the type with ID == $this->type is selected else no pre-selected status

  • return: HTML-Code for Selectbox with types
  • static:
string GetTypeSelectBox ([mixed $selected_type_id = false])
  • mixed $selected_type_id: preselected type
GetWorker (line 233)
void GetWorker ()
GetWorkerId (line 234)
void GetWorkerId ()
get_aggregate_period (line 450)
void get_aggregate_period ()
get_dbindex (line 249)
void get_dbindex ()
get_detail_hours_for_workers (line 330)
void get_detail_hours_for_workers ()
get_hours_for_worker (line 367)
void get_hours_for_worker (mixed $workerid)
get_hours_for_workers (line 348)
void get_hours_for_workers ()
get_name (line 250)
void get_name ()
get_status (line 251)
void get_status ()
get_subpidworkers (line 393)
void get_subpidworkers ()
get_workers (line 404)
void get_workers ()
IsChildPid (line 236)
void IsChildPid ()
LoadSubProject (line 436)

loads all sub-projects and stores them in array $this->sub_project

array LoadSubProject ()
LoadWorker (line 157)
void LoadWorker ()
modify_form (line 497)
void modify_form (mixed $template)
report_form (line 296)
void report_form (mixed $template, mixed $type)
Save (line 464)

Saves Object in Database

  • return: success
bool Save ()
SetDate (line 181)
void SetDate (mixed $date)
SetDescription (line 175)
void SetDescription (mixed $description)
SetId (line 217)
void SetId (mixed $project_id)
SetName (line 205)
void SetName (mixed $project_name)
SetParentName (line 211)
void SetParentName (mixed $parent_name)
SetParentProjectId (line 193)
void SetParentProjectId (mixed $parent_project_id)
SetPriority (line 187)
void SetPriority (mixed $priority)
SetStatus (line 163)
void SetStatus (mixed $project_status)
SetType (line 199)
void SetType (mixed $project_type)
SetWorkerId (line 169)
void SetWorkerId (mixed $worker_id)
set_name (line 254)
void set_name (mixed $newname)
set_status (line 255)
void set_status (mixed $newstatus)
UpdateStatus (line 238)
void UpdateStatus (mixed $status)

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