HCE Project DC service web UI
0.2
Hierarchical Cluster Engine DC service web UI
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Pages
UrlDelete.php
Go to the documentation of this file.
1
<?php
2
3
class
UrlDelete
extends
UrlUpdate
4
{
5
protected
$operation
=
'Delete'
;
6
protected
$opLog
=
'URL_DELETE'
;
7
8
public
function
delete
()
9
{
10
$this->
updateUrlInfo
();
11
}
12
13
public
function
getJson
()
14
{
15
$request = Yii::app()->getRequest();
16
$json
[] = array(
17
'siteId'
=> $request->getPost(
'siteId'
),
18
'url'
=> $request->getPost(
'urlMd5'
),
19
'urlType'
=> 1,
20
'criterions'
=> null,
21
);
22
return
$json
;
23
}
24
25
public
function
commandUpdate
($reqFile)
26
{
27
$api = Yii::app()->params[
'api'
];
28
$path = Yii::app()->getBasePath() .
'/shell/'
;
29
$cmd =
"sh "
. $path .
"url_delete.sh $api $reqFile"
;
30
$json
= shell_exec($cmd);
31
Logger::log
(
"Response ->\n"
.
$json
);
32
return
$json
;
33
}
34
}
app
protected
models
UrlDelete.php
Generated on Tue Jun 30 2015 20:12:35 for HCE Project DC service web UI by
1.8.1.2