WorkTime
Class WorkTime
Table of Contents
Methods
- __construct() : mixed
- Queue constructor.
- automaticAddMessage() : bool
- Automatic processing on incoming message.
- automaticSendMessage() : bool
- Automatic processing of outgoing message.
- checkOperatorWorkTime() : bool
- Checking that the operator is working.
- getNextWorkDayStart() : DateTime
- isWorkTimeLine() : bool
- Is the current time the working time of the open line?
- sendMessage() : bool|int
- Send a welcome message.
Methods
__construct()
Queue constructor.
public
__construct(Session $session) : mixed
Parameters
- $session : Session
automaticAddMessage()
Automatic processing on incoming message.
public
automaticAddMessage([bool $finish = false ][, bool $vote = false ]) : bool
Parameters
- $finish : bool = false
- $vote : bool = false
Return values
boolautomaticSendMessage()
Automatic processing of outgoing message.
public
automaticSendMessage() : bool
Return values
boolcheckOperatorWorkTime()
Checking that the operator is working.
public
checkOperatorWorkTime([bool $finish = false ][, bool $vote = false ]) : bool
Parameters
- $finish : bool = false
- $vote : bool = false
Return values
boolgetNextWorkDayStart()
public
getNextWorkDayStart() : DateTime
Return values
DateTimeisWorkTimeLine()
Is the current time the working time of the open line?
public
isWorkTimeLine() : bool
Return values
boolsendMessage()
Send a welcome message.
public
sendMessage([bool $finish = false ][, bool $vote = false ]) : bool|int
Parameters
- $finish : bool = false
- $vote : bool = false