Completed
Pull Request — master (#12)
by
unknown
02:11
created

NotRewritenUrlsAdminController::defaultAction()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 14
rs 9.4285
cc 1
eloc 10
nc 1
nop 0
1
<?php
2
/*************************************************************************************/
3
/*      This file is part of the RewriteUrl module for Thelia.                       */
4
/*                                                                                   */
5
/*      Copyright (c) OpenStudio                                                     */
6
/*      email : [email protected]                                                       */
7
/*      web : http://www.thelia.net                                                  */
8
/*                                                                                   */
9
/*      For the full copyright and license information, please view the LICENSE.txt  */
10
/*      file that was distributed with this source code.                             */
11
/*************************************************************************************/
12
13
namespace RewriteUrl\Controller\Admin;
14
15
use Thelia\Controller\Admin\AdminController;
16
17
/**
18
 * Class NotRewrittenUrlsAdminController
19
 * @package RewriteUrl\Controller\Admin
20
 * @author Tom Pradat <[email protected]>
21
 */
22
class NotRewritenUrlsAdminController extends AdminController
23
{
24
    public function defaultAction()
25
    {
26
        return $this->render(
27
            'list-notrewritenurls',
28
            array(
29
                'current_tab' => $this->getRequest()->get('current_tab', 'categories'),
30
                'page_category' => $this->getRequest()->get('page_category', 1),
31
                'page_product' => $this->getRequest()->get('page_product', 1),
32
                'page_brand' => $this->getRequest()->get('page_brand', 1),
33
                'page_folder' => $this->getRequest()->get('page_folder', 1),
34
                'page_content' => $this->getRequest()->get('page_content', 1),
35
                )
36
        );
37
    }
38
}