Class Worktype

Description

Class Worktype, reflects access to Table worker_time_worktype

Located in Program_Root/include/worktype.class.php (line 17)


	
			
Variable Summary
int $id
string $name
double $time_count
Method Summary
bool Worktype ([mixed $worktype_id = null])
double GetHolidayCount ()
int GetId ()
string GetName ()
string GetSelectBox ([int $selected_worktype_id = null])
double GetTimeCount ()
bool SetHolidayCount (double $holiday_count)
bool SetId (int $worktype_id)
bool SetName (string $name)
bool SetTimeCount (double $time_count)
Variables
double $holiday_count = 0 (line 45)
  • var: holiday_count
  • since: v1.0
  • access: protected
int $id = 0 (line 24)
  • var: id
  • since: v1.0
  • access: protected
string $name = 0 (line 31)
  • var: name
  • since: v1.0
  • access: protected
double $time_count = 0 (line 38)
  • var: time_count
  • since: v1.0
  • access: protected
Methods
Constructor Worktype (line 56)

expects Time in form of seconds as int or in form H:M[:S[.M]] as string or null, if $time is is null then current time is taken

  • return: success
  • since: v1.0
bool Worktype ([mixed $worktype_id = null])
  • mixed $worktype_id: Time
GetHolidayCount (line 92)

returns holiday_count

  • return: seconds
  • since: v1.4
double GetHolidayCount ()
GetId (line 68)

returns id

  • return: id
  • since: v1.0
int GetId ()
GetName (line 76)

returns name

  • return: name
  • since: v1.0
string GetName ()
GetSelectBox (line 154)

returns HTML-code for selectbox with all worktypes

  • return: htmlcode
  • since: v1.0
  • static:
string GetSelectBox ([int $selected_worktype_id = null])
  • int $selected_worktype_id: selected_worktype_id
GetTimeCount (line 84)

returns time_count

  • return: minutes
  • since: v1.0
double GetTimeCount ()
SetHolidayCount (line 140)

sets holiday_count, returns true on success, otherwise false

  • return: success
  • since: v1.0
bool SetHolidayCount (double $holiday_count)
  • double $holiday_count: holiday_count
SetId (line 101)

sets id, returns true on success, otherwise false

  • return: success
  • since: v1.0
bool SetId (int $worktype_id)
  • int $worktype_id
SetName (line 114)

sets name, returns true on success, otherwise false

  • return: success
  • since: v1.0
bool SetName (string $name)
  • string $name: name
SetTimeCount (line 127)

sets time_count, returns true on success, otherwise false

  • return: success
  • since: v1.0
bool SetTimeCount (double $time_count)
  • double $time_count: time_count

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