AclController   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 4

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 3
c 1
b 0
f 1
lcom 1
cbo 4
dl 0
loc 28
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A initialize() 0 5 1
A frmAction() 0 10 1
A updateAction() 0 4 1
1
<?php
2
class AclController extends ControllerBase
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
3
{
4
    protected $model;
5
    protected $title;
6
    protected $controller;
7
8
    public function initialize(){
9
        $this->model = "Acl";
10
        $this->title = "Acl";
11
        $this->controller= "Acl";
12
    }
13
14
    public function frmAction(){
15
        $typesUser = TypeUser::find();
16
        $operations = Operation::find();
17
        $ressources = Ressource::find();
18
19
        $this->view->setVar("operations",$operations);
20
        $this->view->setVar("ressources",$ressources);
21
        $this->view->setVar("typesUser",$typesUser);
22
23
    }
24
25
    public function updateAction(){
26
        parent::updateAction();
27
        $this->response->redirect("$this->controller/index");
28
    }
29
}