-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdo.php
More file actions
27 lines (23 loc) · 737 Bytes
/
do.php
File metadata and controls
27 lines (23 loc) · 737 Bytes
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
<?php
/**
* User: duxing
* Email: duxing@taobao.com
* Date: 2013-1-22
*/
include_once("../include/common.php");
include_once("DoGenerator.php");
include_once("FileDownloader.php");
$columnList = isset($_POST['columnData'])?$_POST['columnData']:$_GET['columnData'];
$className = isset($_POST['className'])?$_POST['className']:$_GET['className'];
if($columnList!=""){
$columnAry=array();
$propertyArray = explode("|",$columnList);
foreach($propertyArray as $propertyStr){
parse_str($propertyStr,$ary);
if($ary!=null && count($ary)>3){
$columnAry[]=$ary;
}
}
$content = DoGenerator::generate($className,$columnAry);
FileDownloader::download($className.".java",$content);
}