Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Date Range Get Attendance #69

Open
zkenstein opened this issue Jan 29, 2019 · 5 comments
Open

Date Range Get Attendance #69

zkenstein opened this issue Jan 29, 2019 · 5 comments

Comments

@zkenstein
Copy link

Hi,

How to get attendance log by a date range?

Thanks.

@dennist12
Copy link

use filer_by_date()

@zkenstein
Copy link
Author

Hi @dennist12 ,
where to put this filter function? I tried under $users = $zk->getAttendance(); but not working

Thanks

@animfahmy
Copy link

Hi @dennist12 ,
where to put this filter function? I tried under $users = $zk->getAttendance(); but not working

Thanks

$tad_factory = new TADFactory(['ip' => '192.168.1.201', 'encoding' => 'utf-8']); $tad = $tad_factory->get_instance(); $att_logs = $tad->get_att_log(); $filtered_att_logs = $att_logs->filter_by_date( ['start' => date("Y-m-d"),'end' => date("Y-m-d")] ); $array_filter = $filtered_att_logs->to_array();

@zkenstein
Copy link
Author

Hi @animfahmy , got this error:

Fatal error: Uncaught exception 'TADPHP\Exceptions\ConnectionError' with message 'Imposible iniciar conexión con dispositivo

@birhannega
Copy link

@zkenstein if you got this error, you didn't establish connection at all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants