TADPHP is built follows PSR-4 standard and comes with a specific file named composer.json that allows Composer to generate a file named autoload.php (beside others files of course). It's also able to build automatically autoloaders if you wrote down your code using PSR-0 and/or PSR-4 standards, avoiding you headaches about everything related to loading classes. All ZK Time & Attendance devices with web server built-in (with ZEM600 or less).Īfter download TAD-PHP, you have 2 ways to get your enviroment configured to use the classes:Ĭomposer is the PHP's package manager and is the recommended way to get packages for your projects.PHPUnit to execute the test suite (optional).The class decides about when runs the method invoked using TAD class or PHP_ZKLib class. PHP_ZKLib class it's been fully integrated, after a refactoring process taking out all duplicated code (DRY).įor practical purposes, you don't have to be worried about when to use TAD class or PHP_ZKLib class because you only have to get a TAD instance (as shown below) and call any of its methods available. This class takes a different approach to "talk to the device": it uses UDP protocol at device standard port 4370. For these situations, TAD class implement them by Providers\TADZKLib class ( - ). There are some SOAP functions supported by ZK devices that it's suppossed, according to the official docs (which incidentally it's very limited and so poor!!!) must show an expected behaviour, but when they are invoked don't work like is expected, so they become useless (e.g. Get_date, get_att_log, get_user_info, get_all_user_info, get_user_template, get_combination, get_option, get_free_sizes, get_platform, get_fingerprint_algorithm, get_serial_number, get_oem_vendor, get_mac_address, get_device_name, get_manufacture_time, get_antipassback_mode, get_workcode, get_ext_format_mode, get_encrypted_mode, get_pin2_width, get_ssr_mode, get_firmware_version, set_date, set_user_info, set_user_template, delete_user, delete_template, delete_data, delete_user_password, delete_admin, enable, disable, refresh_db, restart, and poweroff.Īll methods above are implemented by 2 classes: Providers\TADSoap and Providers\TADZKLib.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |