v8js_array_access.h 1.5 KB

12345678910111213141516171819202122232425262728293031
  1. /*
  2. +----------------------------------------------------------------------+
  3. | PHP Version 5 |
  4. +----------------------------------------------------------------------+
  5. | Copyright (c) 1997-2013 The PHP Group |
  6. +----------------------------------------------------------------------+
  7. | http://www.opensource.org/licenses/mit-license.php MIT License |
  8. +----------------------------------------------------------------------+
  9. | Author: Stefan Siegl <[email protected]> |
  10. +----------------------------------------------------------------------+
  11. */
  12. #ifndef V8JS_ARRAY_ACCESS_H
  13. #define V8JS_ARRAY_ACCESS_H
  14. /* Indexed Property Handlers */
  15. void php_v8js_array_access_getter(uint32_t index,
  16. const v8::PropertyCallbackInfo<v8::Value>& info);
  17. void php_v8js_array_access_setter(uint32_t index, v8::Local<v8::Value> value,
  18. const v8::PropertyCallbackInfo<v8::Value>& info);
  19. void php_v8js_array_access_length(v8::Local<v8::String> property,
  20. const v8::PropertyCallbackInfo<v8::Value>& info);
  21. void php_v8js_array_access_enumerator(const v8::PropertyCallbackInfo<v8::Array>& info);
  22. void php_v8js_array_access_deleter(uint32_t index,
  23. const v8::PropertyCallbackInfo<v8::Boolean>& info);
  24. /* Named Property Handlers */
  25. void php_v8js_array_access_named_getter(v8::Local<v8::String> property,
  26. const v8::PropertyCallbackInfo<v8::Value> &info);
  27. #endif /* V8JS_ARRAY_ACCESS_H */