AclController::initialize()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 5
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
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
}