-
Notifications
You must be signed in to change notification settings - Fork 13
/
fool_request.h
31 lines (22 loc) · 1.27 KB
/
fool_request.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef PHP_FOOL_REQUEST_H
#define PHP_FOOL_REQUEST_H
#define FOOL_REQUEST_PROPERTY_NAME_INSTANCE "_instance"
#define FOOL_REQUEST_PROPERTY_NAME_CONTROLLER "controller" //handler控制器
#define FOOL_REQUEST_PROPERTY_NAME_ACTION "action" //handler操作
#define FOOL_REQUEST_PROPERTY_NAME_CONTROLLER_NAME "controller_name" //handler控制器
#define FOOL_REQUEST_PROPERTY_NAME_ACTION_NAME "action_name" //handler操作
#define FOOL_REQUEST_CONTROLLER_SUFIX "Controller" //控制器后缀
#define FOOL_REQUEST_ACTION_SUFIX "Action" //操作后缀
#define FOOL_REQUEST_CONTROLLER_DEFAULT "Index" //默认控制器
#define FOOL_REQUEST_ACTION_DEFAULT "index" //默认操作
#define FOOL_REQUEST_SEPARATOR "." //分隔符
#define FOOL_REQUEST_METHOD_PARAM "m"
extern zend_class_entry *fool_request_ce;
zval* fool_request_instance(TSRMLS_D);
zval* fool_request_get_controller(zval* request TSRMLS_DC);
zval* fool_request_get_controller_name(zval* request TSRMLS_DC);
zval* fool_request_get_action(zval* request TSRMLS_DC);
zval* fool_request_get_action_name(zval* request TSRMLS_DC);
int fool_request_parse_method(zval* request TSRMLS_DC);
FOOL_STARTUP_MODULE(request);
#endif