import 2.0 devl branch, suitable for PHP-trunk
[m6w6/ext-http] / php_http_querystring.h
1 /*
2 +--------------------------------------------------------------------+
3 | PECL :: http |
4 +--------------------------------------------------------------------+
5 | Redistribution and use in source and binary forms, with or without |
6 | modification, are permitted provided that the conditions mentioned |
7 | in the accompanying LICENSE file are met. |
8 +--------------------------------------------------------------------+
9 | Copyright (c) 2004-2010, Michael Wallner <mike@php.net> |
10 +--------------------------------------------------------------------+
11 */
12
13 /* $Id: php_http_querystring_api.h 292841 2009-12-31 08:48:57Z mike $ */
14
15 #ifndef PHP_HTTP_QUERYSTRING_H
16 #define PHP_HTTP_QUERYSTRING_H
17
18 /* API */
19
20 #ifdef PHP_HTTP_HAVE_ICONV
21 PHP_HTTP_API int php_http_querystring_xlate(zval *array, zval *param, const char *ie, const char *oe TSRMLS_DC);
22 #endif /* PHP_HTTP_HAVE_ICONV */
23 PHP_HTTP_API void php_http_querystring_update(zval *qarray, zval *qstring TSRMLS_DC);
24 PHP_HTTP_API int php_http_querystring_modify(zval *qarray, zval *params TSRMLS_DC);
25
26 /* PHP */
27
28 typedef struct php_http_querystring_object {
29 zend_object zo;
30 } php_http_querystring_object_t;
31
32 #define PHP_HTTP_QUERYSTRING_TYPE_BOOL IS_BOOL
33 #define PHP_HTTP_QUERYSTRING_TYPE_INT IS_LONG
34 #define PHP_HTTP_QUERYSTRING_TYPE_FLOAT IS_DOUBLE
35 #define PHP_HTTP_QUERYSTRING_TYPE_STRING IS_STRING
36 #define PHP_HTTP_QUERYSTRING_TYPE_ARRAY IS_ARRAY
37 #define PHP_HTTP_QUERYSTRING_TYPE_OBJECT IS_OBJECT
38
39 extern zend_class_entry *php_http_querystring_class_entry;
40 extern zend_function_entry php_http_querystring_method_entry[];
41
42 extern PHP_MINIT_FUNCTION(http_querystring);
43
44 #define php_http_querystring_object_new php_http_object_new
45 #define php_http_querystring_object_new_ex php_http_object_new_ex
46
47 PHP_METHOD(HttpQueryString, getGlobalInstance);
48 PHP_METHOD(HttpQueryString, __construct);
49 PHP_METHOD(HttpQueryString, getIterator);
50 PHP_METHOD(HttpQueryString, toString);
51 PHP_METHOD(HttpQueryString, toArray);
52 PHP_METHOD(HttpQueryString, get);
53 PHP_METHOD(HttpQueryString, set);
54 PHP_METHOD(HttpQueryString, mod);
55 PHP_METHOD(HttpQueryString, getBool);
56 PHP_METHOD(HttpQueryString, getInt);
57 PHP_METHOD(HttpQueryString, getFloat);
58 PHP_METHOD(HttpQueryString, getString);
59 PHP_METHOD(HttpQueryString, getArray);
60 PHP_METHOD(HttpQueryString, getObject);
61 #ifdef PHP_HTTP_HAVE_ICONV
62 PHP_METHOD(HttpQueryString, xlate);
63 #endif /* PHP_HTTP_HAVE_ICONV */
64 PHP_METHOD(HttpQueryString, factory);
65 PHP_METHOD(HttpQueryString, singleton);
66 PHP_METHOD(HttpQueryString, serialize);
67 PHP_METHOD(HttpQueryString, unserialize);
68 PHP_METHOD(HttpQueryString, offsetGet);
69 PHP_METHOD(HttpQueryString, offsetSet);
70 PHP_METHOD(HttpQueryString, offsetExists);
71 PHP_METHOD(HttpQueryString, offsetUnset);
72
73 #endif /* PHP_HTTP_QUERYSTRING_H */
74
75 /*
76 * Local variables:
77 * tab-width: 4
78 * c-basic-offset: 4
79 * End:
80 * vim600: noet sw=4 ts=4 fdm=marker
81 * vim<600: noet sw=4 ts=4
82 */