Constructor
Worker
Worker
(int $worker_id)
-
int
$worker_id: worker_id
Looks up and compares user password
bool
authenticate
(string $plain_pass)
-
string
$plain_pass: plain password
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
bool
CalculateData
()
aktualisert Datenabnk für angegeben tag, wird day nicht angegeben wird der aktuelle tag angenommen
bool
CalculateDataForDay
([string[optional] $day = null])
-
string[optional]
$day: day
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
bool
come
([string[optional] $time = null], [string[optional] $date = null])
-
string[optional]
$time: time
-
string[optional]
$date: date
removes all DB-entrys for this Object
bool
Delete
()
void
EncryptPassword
(mixed $password)
void
GetAnnualHolidays
([mixed $year = null])
void
GetContractedAnnualHolidays
()
void
GetContractedHoursForDay
([mixed $day = null])
void
GetCurrentProjectId
()
void
GetCurrentSubProjectId
()
void
GetFreebieOverTime
()
returns object Time with overtime till given date or now
void
GetOverTimeForWeek
([mixed $day = null])
void
GetPasswordEncrypted
()
void
GetPidSelectBox
([mixed $selected = null])
returns remaining holidays till given date or now
double
GetRemainingHolidays
([mixed $day = null])
-
mixed
$day: date date-object, date-string or null for current
returns a HTML-Selectbox as string
string
GetSelectBox
([mixed $only_active = true], mixed $selected_worker_id)
returns sickdays for given or current year
double
GetSickDays
([int $year = null])
returns count of holidays for given or actual year
double
GetTakenHolidays
([int $year = null])
returns time as string that is not projected for given day, if day is empty current date is taken
string
GetUnProjectedWorkTimeForDay
([object date $day = null])
void
GetViewSelectbox
([mixed $current_view = null])
void
GetWorkspaceForDay
([mixed $day = null])
void
GetWorkTimeForDay
([mixed $day = null])
returns type of owkr for given day
int
GetWorkTypeForDay
([string[optional] $day = null])
-
string[optional]
$day: day
void
get_hours_for_pid
(mixed $pidid)
Arbeitszeit beenden
bool
go
([string[optional] $time = null], [string[optional] $day = null])
-
string[optional]
$time: time
-
string[optional]
$day: day
void
job_report
(mixed $template, mixed $job_id)
void
load_last_work_day
()
void
load_worker_by_query
(mixed $where)
void
LogIn
(mixed $Username, mixed $Password)
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
SetAdmin
(mixed $admin)
void
SetAnnualHoliday
(mixed $annual_holiday)
void
SetCompany
(mixed $company_id)
void
SetContractEnd
(mixed $contract_end)
void
SetContractStart
(mixed $contract_start)
Sets the current Day for the day-view, day must be object of type Date or a string
bool
SetCurrentDay
([mixed $date = null])
void
SetCurrentProjectId
(mixed $project_id)
void
SetCurrentSubProjectId
(mixed $subproject_id)
Sets the current week-date for the week-view, day must be object of type Date or a string
bool
SetCurrentWeek
([mixed $date = null])
Sets the current year for the year-view, year must be an integer
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)
Saves Object in DB returns true on succes, otherwise false
bool
Update
()
void
UpdateCurrentProjectId
(mixed $project_id)
void
UpdateCurrentSubProjectId
(mixed $subproject_id)
Updates the user pasword in the database
bool
UpdatePassword
([string $plain_pass = null])
-
string
$plain_pass: password
bool
UpdateUpdated
(object date $day)
bool
UpdateWorkDayType
(
object Date $_days,
int $worktype)
bool
UpdateWorkDayTypeForDay
(
object Date $day,
int $worktype)