TheliaAdminHook   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 8
lcom 0
cbo 0
dl 0
loc 38
rs 10
c 0
b 0
f 0

8 Methods

Rating   Name   Duplication   Size   Complexity  
A onContentModuleTab() 0 4 1
A onContentEditJs() 0 3 1
A onFolderModuleTab() 0 4 1
A onFolderEditJs() 0 3 1
A onBrandModuleTab() 0 4 1
A onBrandEditJs() 0 3 1
A onProductModuleTab() 0 4 1
A onProductEditJs() 0 3 1
1
<?php
2
/*************************************************************************************/
3
/*      This file is part of the Thelia package.                                     */
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
14
namespace Dealer\Hook;
15
16
use Thelia\Core\Event\Hook\HookRenderEvent;
17
use Thelia\Core\Hook\BaseHook;
18
19
/**
20
 * Class TheliaAdminHook
21
 * @package Dealer\Hook
22
 */
23
class TheliaAdminHook extends BaseHook
24
{
25
    public function onContentModuleTab(HookRenderEvent $event)
26
    {
27
        $event->add($this->render("hook/content.html",$event->getArguments()));
28
    }
29
30
    public function onContentEditJs(HookRenderEvent $event){
31
        $event->add($this->render("script/dealer-content-js.html",$event->getArguments()));
32
    }
33
34
    public function onFolderModuleTab(HookRenderEvent $event)
35
    {
36
        $event->add($this->render("hook/folder.html",$event->getArguments()));
37
    }
38
39
    public function onFolderEditJs(HookRenderEvent $event){
40
        $event->add($this->render("script/dealer-folder-js.html",$event->getArguments()));
41
    }
42
43
    public function onBrandModuleTab(HookRenderEvent $event)
44
    {
45
        $event->add($this->render("hook/brand.html",$event->getArguments()));
46
    }
47
48
    public function onBrandEditJs(HookRenderEvent $event){
49
        $event->add($this->render("script/dealer-brand-js.html",$event->getArguments()));
50
    }
51
52
    public function onProductModuleTab(HookRenderEvent $event)
53
    {
54
        $event->add($this->render("hook/product.html",$event->getArguments()));
55
    }
56
57
    public function onProductEditJs(HookRenderEvent $event){
58
        $event->add($this->render("script/dealer-product-js.html",$event->getArguments()));
59
    }
60
}