-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.php
More file actions
71 lines (64 loc) · 2.09 KB
/
run.php
File metadata and controls
71 lines (64 loc) · 2.09 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php
//加载所有模块
//Load all modules
include('include.php');
//设置项目名称
$config_class = new _oop_config_class("default");
$config_array = $config_class->config_array;
//数据表
$config_class->push_project_db_table_info(
array(
"db_table_name" => "user",
"PRIMARY_KEY" => "USER_ID",
"AUTO_INCREMENT_INIT" => "0"
),
array(
array( "key" => "USER_ID", "var_format" => "INTEGER UNSIGNED", "NULL" => "NOT NULL", "AUTO_INCREMENT" => "AUTO_INCREMENT", "annotation" => "" ),
array( "key" => "USERNAME", "var_format" => "VARCHAR(20)", "NULL" => "NOT NULL", "AUTO_INCREMENT" => "", "annotation" => "" ),
array( "key" => "PASSWORD", "var_format" => "CHAR(40)", "NULL" => "NOT NULL", "AUTO_INCREMENT" => "", "annotation" => "" ),
array( "key" => "EMAIL_ADDR", "var_format" => "VARCHAR(100)", "NULL" => "NOT NULL", "AUTO_INCREMENT" => "", "annotation" => "" ),
array( "key" => "IS_ACTIVE", "var_format" => "TINYINT(1)", "NULL" => "NOT NULL", "AUTO_INCREMENT" => "DEFAULT 0", "annotation" => "" )
)
);
$config_class->push_project_module_info(array(
"class_name" => "config",
"format" => "php",
"attribute_array" => array(
new _oop_module_attribute_class(
array("variable_name" => "domain_name",
"type" => "string",
"init" => "",
"visibility" => "public")),
new _oop_module_attribute_class(
array("variable_name" => "port",
"type" => "number",
"init" => 0,
"visibility" => "public"))
),
"methods_array" => array(
new _oop_module_function_class(
array("function_name" => "aaa",
"visibility" => "public",
"input_variable" => array("a","b")
)
)
)
)
);
$config_class->push_project_page_info(
array(
"name" => "a",
"title" => "aa",
"format" => "php",
"config_array" => $config_class->config_array,
"content" => "aaa"));
$config_class->push_project_page_info(
array(
"name" => "b",
"title" => "bb",
"format" => "php",
"config_array" => $config_class->config_array,
"content" => "bbb"));
$config_class->main_run();
echo 'project/default/README.html'
?>