2 +--------------------------------------------------------------------+
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 +--------------------------------------------------------------------+
13 /* $Id: php_http_querystring_api.h 292841 2009-12-31 08:48:57Z mike $ */
15 #ifndef PHP_HTTP_QUERYSTRING_H
16 #define PHP_HTTP_QUERYSTRING_H
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
);
28 typedef struct php_http_querystring_object
{
30 } php_http_querystring_object_t
;
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
39 extern zend_class_entry
*php_http_querystring_class_entry
;
40 extern zend_function_entry php_http_querystring_method_entry
[];
42 extern PHP_MINIT_FUNCTION(http_querystring
);
44 #define php_http_querystring_object_new php_http_object_new
45 #define php_http_querystring_object_new_ex php_http_object_new_ex
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
);
73 #endif /* PHP_HTTP_QUERYSTRING_H */
80 * vim600: noet sw=4 ts=4 fdm=marker
81 * vim<600: noet sw=4 ts=4