Class Worker

Description

reflects acces to tables worker*

Located in Program_Root/include/worker.class.php (line 27)


	
			
Variable Summary
Method Summary
Worker Worker (int $worker_id)
bool authenticate (string $plain_pass)
bool CalculateData ()
bool CalculateDataForDay ([string[optional] $day = null])
void CanCome ()
void CanGo ()
void CheckTimes ()
bool come ([string[optional] $time = null], [string[optional] $date = null])
bool Delete ()
void DumpTimeData ()
void EncryptPassword (mixed $password)
void GetAnnualHolidays ([mixed $year = null])
void GetComeLink ()
void GetContractedHoursForDay ([mixed $day = null])
void GetContractEnd ()
void GetCurrentDay ()
void GetCurrentWeek ()
void GetCurrentYear ()
void GetFullName ()
void GetGoLink ()
void GetId ()
void GetLoginName ()
object Time GetOverTime ([mixed $day = null])
void GetOverTimeForWeek ([mixed $day = null])
void GetPidSelectBox ([mixed $selected = null])
double GetRemainingHolidays ([mixed $day = null])
string GetSelectBox ([mixed $only_active = true], mixed $selected_worker_id)
double GetSickDays ([int $year = null])
double GetTakenHolidays ([int $year = null])
string GetUnProjectedWorkTimeForDay ([object date $day = null])
void GetUpdated ()
void GetViewSelectbox ([mixed $current_view = null])
void GetWorkertype ()
void GetWorkSpace ()
void GetWorkspaceForDay ([mixed $day = null])
void GetWorkTimeForDay ([mixed $day = null])
int GetWorkTypeForDay ([string[optional] $day = null])
void get_hours_for_pid (mixed $pidid)
void get_pids ()
void get_total_hours ()
bool go ([string[optional] $time = null], [string[optional] $day = null])
void IsAdmin ()
void IsLogedIn ()
void job_report (mixed $template, mixed $job_id)
void load_worker_by_query (mixed $where)
void LogIn (mixed $Username, mixed $Password)
void LogOut ()
void lookup_worker_by_name (mixed $user_name)
void modify_form (mixed $template)
void month_report (mixed $template, mixed $month, mixed $year)
void report_form (mixed $template, mixed $type, mixed $job_id)
void schon_da ()
void schon_weg ()
void SetAdmin (mixed $admin)
void SetAnnualHoliday (mixed $annual_holiday)
void SetCompany (mixed $company_id)
void SetContractEnd (mixed $contract_end)
void SetContractStart (mixed $contract_start)
bool SetCurrentDay ([mixed $date = null])
void SetCurrentProjectId (mixed $project_id)
void SetCurrentSubProjectId (mixed $subproject_id)
bool SetCurrentWeek ([mixed $date = null])
bool SetCurrentYear ([int $year = null])
void SetDescription (mixed $description)
void SetFreebieOvertime (mixed $freebie_overtime)
void SetId (mixed $worker_id)
void SetLastName (mixed $last_name)
void SetLogedIn (mixed $LogedIn)
void SetLoginName (mixed $login_name)
void SetPassword (mixed $password)
void SetPasswordEncrypted (mixed $password_encrypted)
void SetPidTimeForDay (mixed $project_id, mixed $time, mixed $day)
void SetSureName (mixed $sure_name)
void SetUpdated ([mixed $day = null])
void SetWorkerType (mixed $worker_type)
void SetWorkSpace (mixed $work_space)
bool Update ()
void UpdateCurrentProjectId (mixed $project_id)
void UpdateCurrentSubProjectId (mixed $subproject_id)
bool UpdatePassword ([string $plain_pass = null])
bool UpdateUpdated (object date $day)
bool UpdateWorkDayType (object Date $_days, int $worktype)
bool UpdateWorkDayTypeForDay (object Date $day, int $worktype)
Variables
bool $admin = false (line 85)
  • var: Admin
  • since: 1.9
  • access: protected
int $annual_holiday = 0 (line 103)
  • var: Annual-Holidays
  • since: 1.9
  • access: protected
object Company $company (line 73)
  • since: 1.9
  • access: protected
date $contract_end = null (line 175)
  • var: end of contract
  • since: 1.9
  • access: protected
date $contract_start = null (line 169)
  • var: start of contract
  • since: 1.9
  • access: protected
date $current_day = null (line 163)
  • var: current Date for day-view
  • since: 1.9
  • access: protected
object Project $current_project = null (line 127)
  • var: current project
  • since: 1.9
  • access: protected
int $current_project_id (line 115)
  • var: current project_id
  • since: 1.9
  • access: protected
object Project $current_subproject = null (line 133)
  • var: current sub_project
  • since: 1.9
  • access: protected
int $current_subproject_id (line 121)
  • var: current sub-project_id
  • since: 1.9
  • access: protected
date $current_week = null (line 157)
  • var: current week for week-view
  • since: 1.9
  • access: protected
int $current_year = null (line 151)
  • var: current Year for Year-View
  • since: 1.9
  • access: protected
array $DayHours = null (line 139)
  • var: day => hours
  • since: 1.9
  • access: protected
object freebie $freebie_overtime = null (line 37)
  • var: overtime per week
  • since: 1.9
  • access: protected
int $id (line 67)
  • var: ID
  • since: 1.9
  • access: protected
string $lastname (line 55)
  • var: Lastname
  • since: 1.9
  • access: protected
array $lastworktime = null (line 181)
  • since: 1.9
  • access: protected
bool $LogedIn = false (line 145)
  • var: Logedin
  • since: 1.9
  • access: protected
string $login_name (line 43)
  • var: Login-Name
  • since: 1.9
  • access: protected
string $login_password (line 61)
  • var: Login-Password
  • since: 1.9
  • access: protected
string $login_password_encrypted (line 79)
  • var: Encrypted Password
  • since: 1.9
  • access: protected
string $surename (line 49)
  • var: Surename
  • since: 1.9
  • access: protected
object date $updated = null (line 109)
  • var: Last update
  • since: 1.9
  • access: protected
object time $workspace (line 97)
  • var: workspace per day
  • since: 1.9
  • access: protected
object time $wzeit (line 91)
  • since: 1.9
  • access: protected
Methods
Constructor Worker (line 189)

Constructor

Worker Worker (int $worker_id)
  • int $worker_id: worker_id
authenticate (line 1727)

Looks up and compares user password

  • return: true if password is correct, otherwise false
bool authenticate (string $plain_pass)
  • string $plain_pass: plain password
CalculateData (line 1207)

Checks and calculates data for given date with current data from worker f.e. sets contracted hours for this day from cuurent settings in worker or workspace

  • return: success
bool CalculateData ()
CalculateDataForDay (line 853)

aktualisert Datenabnk für angegeben tag, wird day nicht angegeben wird der aktuelle tag angenommen

  • return: success
bool CalculateDataForDay ([string[optional] $day = null])
  • string[optional] $day: day
CanCome (line 354)
void CanCome ()
CanGo (line 390)
void CanGo ()
CheckTimes (line 664)
void CheckTimes ()
come (line 762)

setzt die Kommen-Zeit für die angegebene Zeit und den angegebenen Tag, wird time und date nicht angegeben wir die akteulle Zeit und der Aktuelle Tag angenommen, Returns true on success, false otherwise

  • return: success
bool come ([string[optional] $time = null], [string[optional] $date = null])
  • string[optional] $time: time
  • string[optional] $date: date
Delete (line 1531)

removes all DB-entrys for this Object

  • return: success
bool Delete ()
DumpTimeData (line 1756)
void DumpTimeData ()
EncryptPassword (line 1695)
void EncryptPassword (mixed $password)
GetAnnualHolidays (line 464)
void GetAnnualHolidays ([mixed $year = null])
GetComeLink (line 366)
void GetComeLink ()
GetContractedAnnualHolidays (line 919)
void GetContractedAnnualHolidays ()
GetContractedHoursForDay (line 1167)
void GetContractedHoursForDay ([mixed $day = null])
GetContractEnd (line 1660)
void GetContractEnd ()
GetContractStart (line 1661)
void GetContractStart ()
GetCurrentDay (line 1662)
void GetCurrentDay ()
GetCurrentProjectId (line 1663)
void GetCurrentProjectId ()
GetCurrentSubProjectId (line 1664)
void GetCurrentSubProjectId ()
GetCurrentWeek (line 1665)
void GetCurrentWeek ()
GetCurrentYear (line 1666)
void GetCurrentYear ()
GetDayTypeForDay (line 792)
  • return: worktype
  • uses: Date
int GetDayTypeForDay (object Date $day)
GetFreebieOverTime (line 1667)
void GetFreebieOverTime ()
GetFullName (line 1668)
void GetFullName ()
GetGoLink (line 378)
void GetGoLink ()
GetId (line 1669)
void GetId ()
GetLoginName (line 1670)
void GetLoginName ()
GetOverTime (line 1358)

returns object Time with overtime till given date or now

  • since: v1.0
object Time GetOverTime ([mixed $day = null])
  • mixed $day: day
GetOverTimeForWeek (line 950)
void GetOverTimeForWeek ([mixed $day = null])
GetPasswordEncrypted (line 1671)
void GetPasswordEncrypted ()
GetPidSelectBox (line 286)
void GetPidSelectBox ([mixed $selected = null])
GetRemainingHolidays (line 1441)

returns remaining holidays till given date or now

  • return: holidays
  • since: v1.0
double GetRemainingHolidays ([mixed $day = null])
  • mixed $day: date date-object, date-string or null for current
GetSelectBox (line 1836)

returns a HTML-Selectbox as string

  • return: HTML-Code for selectbox with Workers
  • static:
string GetSelectBox ([mixed $only_active = true], mixed $selected_worker_id)
GetSickDays (line 1467)

returns sickdays for given or current year

  • return: sickdays
  • since: v1.0
double GetSickDays ([int $year = null])
  • int $year: year
GetTakenHolidays (line 1414)

returns count of holidays for given or actual year

  • return: holidays
  • since: v1.0
double GetTakenHolidays ([int $year = null])
  • int $year: year
GetUnProjectedWorkTimeForDay (line 1000)

returns time as string that is not projected for given day, if day is empty current date is taken

  • return: time
  • uses: Date
string GetUnProjectedWorkTimeForDay ([object date $day = null])
  • object date $day
GetUpdated (line 1672)
void GetUpdated ()
GetViewSelectbox (line 1867)
void GetViewSelectbox ([mixed $current_view = null])
GetWorkertype (line 1673)
void GetWorkertype ()
GetWorkSpace (line 1674)
void GetWorkSpace ()
GetWorkspaceForDay (line 1076)
void GetWorkspaceForDay ([mixed $day = null])
GetWorkTimeForDay (line 1040)
void GetWorkTimeForDay ([mixed $day = null])
GetWorkTypeForDay (line 1107)

returns type of owkr for given day

  • return: worktype
int GetWorkTypeForDay ([string[optional] $day = null])
  • string[optional] $day: day
get_hours_for_pid (line 1488)
void get_hours_for_pid (mixed $pidid)
get_pids (line 1510)
void get_pids ()
get_total_hours (line 1498)
void get_total_hours ()
go (line 1252)

Arbeitszeit beenden

  • return: success
bool go ([string[optional] $time = null], [string[optional] $day = null])
  • string[optional] $time: time
  • string[optional] $day: day
IsAdmin (line 1697)
void IsAdmin ()
IsLogedIn (line 1698)
void IsLogedIn ()
job_report (line 542)
void job_report (mixed $template, mixed $job_id)
load_last_work_day (line 1738)
void load_last_work_day ()
load_worker_by_query (line 1604)
void load_worker_by_query (mixed $where)
LogIn (line 490)
void LogIn (mixed $Username, mixed $Password)
LogOut (line 506)
void LogOut ()
lookup_worker_by_name (line 1654)
void lookup_worker_by_name (mixed $user_name)
modify_form (line 1566)
void modify_form (mixed $template)
month_report (line 581)
void month_report (mixed $template, mixed $month, mixed $year)
report_form (line 513)
void report_form (mixed $template, mixed $type, mixed $job_id)
schon_da (line 677)
void schon_da ()
schon_weg (line 736)
void schon_weg ()
SetAdmin (line 1676)
void SetAdmin (mixed $admin)
SetAnnualHoliday (line 1677)
void SetAnnualHoliday (mixed $annual_holiday)
SetCompany (line 1678)
void SetCompany (mixed $company_id)
SetContractEnd (line 1679)
void SetContractEnd (mixed $contract_end)
SetContractStart (line 1680)
void SetContractStart (mixed $contract_start)
SetCurrentDay (line 242)

Sets the current Day for the day-view, day must be object of type Date or a string

  • return: success
  • uses: Date
bool SetCurrentDay ([mixed $date = null])
  • mixed $date: date
SetCurrentProjectId (line 1681)
void SetCurrentProjectId (mixed $project_id)
SetCurrentSubProjectId (line 1682)
void SetCurrentSubProjectId (mixed $subproject_id)
SetCurrentWeek (line 213)

Sets the current week-date for the week-view, day must be object of type Date or a string

  • return: success
  • uses: Date
bool SetCurrentWeek ([mixed $date = null])
  • mixed $date: date
SetCurrentYear (line 269)

Sets the current year for the year-view, year must be an integer

  • return: success
bool SetCurrentYear ([int $year = null])
  • int $year: year
SetDescription (line 1683)
void SetDescription (mixed $description)
SetFreebieOvertime (line 1684)
void SetFreebieOvertime (mixed $freebie_overtime)
SetId (line 1685)
void SetId (mixed $worker_id)
SetLastName (line 1686)
void SetLastName (mixed $last_name)
SetLogedIn (line 1687)
void SetLogedIn (mixed $LogedIn)
SetLoginName (line 1688)
void SetLoginName (mixed $login_name)
SetPassword (line 1689)
void SetPassword (mixed $password)
SetPasswordEncrypted (line 1690)
void SetPasswordEncrypted (mixed $password_encrypted)
SetPidTimeForDay (line 340)
void SetPidTimeForDay (mixed $project_id, mixed $time, mixed $day)
SetSureName (line 1691)
void SetSureName (mixed $sure_name)
SetUpdated (line 977)
void SetUpdated ([mixed $day = null])
SetWorkerType (line 1692)
void SetWorkerType (mixed $worker_type)
SetWorkSpace (line 1693)
void SetWorkSpace (mixed $work_space)
Update (line 1548)

Saves Object in DB returns true on succes, otherwise false

  • return: succes
bool Update ()
UpdateCurrentProjectId (line 1236)
void UpdateCurrentProjectId (mixed $project_id)
UpdateCurrentSubProjectId (line 1226)
void UpdateCurrentSubProjectId (mixed $subproject_id)
UpdatePassword (line 1706)

Updates the user pasword in the database

  • return: success
bool UpdatePassword ([string $plain_pass = null])
  • string $plain_pass: password
UpdateUpdated (line 930)
  • return: success
  • uses: Date
bool UpdateUpdated (object date $day)
  • object date $day
UpdateWorkDayType (line 436)
bool UpdateWorkDayType (object Date $_days, int $worktype)
UpdateWorkDayTypeForDay (line 410)
bool UpdateWorkDayTypeForDay (object Date $day, int $worktype)

Documentation generated on Fri, 26 Sep 2003 15:40:16 +0200 by phpDocumentor 1.2.2