kamshory / ZKLibrary

ZKLibrary is PHP library for reading and writing data to attendance device using UDP protocol. This library useful to comunicate between web server and attendance device directly without addition program. This library is implemented in the form of class. So that you can create an object and use it functions.
GNU General Public License v2.0
193 stars 176 forks source link

how can I add time of working to an existing user ? #96

Open FairouzGattoufi opened 4 years ago

FairouzGattoufi commented 4 years ago

I want to add time for user like I mean : user1 he work from 8am to 7 pm he is not able to put the fingerprint at 8 pm the device will not be active for him ? I need help please

AmirTallap commented 4 years ago

?? When you use getAttendence function, the returned value is an array of [user_id,state,datetime] Regardless of the time! If user1 push finger at 8am then it will be stored on the device, unless you getAttendance. If he pushes at 5pm, also it will be stored on the device.

FairouzGattoufi commented 4 years ago

get it thank you so much

when he pointed, out of his time, the device will not allow him

AmirTallap commented 4 years ago

I don't understand your point?

kamshory commented 4 years ago

Please remember that the library is ONLY for reading attendance from the device. So, all control over attendance records is in your application. When users enter or leave your office outside the time you specify, you have the right to record it as "out of office". Ofcourse you need to have your own database to your application.