excel.h 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. /*
  2. +----------------------------------------------------------------------+
  3. | XlsWriter Extension |
  4. +----------------------------------------------------------------------+
  5. | Copyright (c) 2017-2018 The Viest |
  6. +----------------------------------------------------------------------+
  7. | http://www.viest.me |
  8. +----------------------------------------------------------------------+
  9. | Author: viest <[email protected]> |
  10. +----------------------------------------------------------------------+
  11. */
  12. #ifndef VTIFUL_XLS_H
  13. #define VTIFUL_XLS_H
  14. #define V_XLS_HANDLE "handle"
  15. #define V_XLS_FIL "fileName"
  16. #define V_XLS_COF "config"
  17. #define V_XLS_PAT "path"
  18. #define GET_CONFIG_PATH(dir_path_res, class_name, object) \
  19. do { \
  20. zval *_config = zend_read_property(class_name, object, ZEND_STRL(V_XLS_COF), 0, NULL); \
  21. (dir_path_res) = zend_hash_str_find(Z_ARRVAL_P(_config), ZEND_STRL(V_XLS_PAT)); \
  22. } while(0)
  23. extern zend_class_entry *vtiful_xls_ce;
  24. VTIFUL_STARTUP_FUNCTION(excel);
  25. #endif