HCE Project DC service web UI  0.2
Hierarchical Cluster Engine DC service web UI
 All Classes Namespaces Files Functions Variables Pages
UrlCleanupController.php
Go to the documentation of this file.
1 <?php
2 
4 {
5  public function actionIndex($url, $urlType, $siteId)
6  {
7  $this->renderPartial("__cleanupDialog", array(
8  'url' => $url,
9  'urlType' => $urlType,
10  'siteId' => $siteId,
11  ));
12  }
13 
14  public function actionCleanup()
15  {
16  $r = Yii::app()->request;
17  $command = new UrlCleanup;
18  $command->cleanupUrlInfo(
19  $r->getParam('siteId'),
20  $r->getParam('url'),
21  $r->getParam('urlType'),
22  $r->getParam('state'),
23  $r->getParam('status')
24  );
25  unset($command);
26  Yii::app()->request->redirect($_SERVER['HTTP_REFERER']);
27  }
28 }