Completed
Push — master ( 530ddf...47cb1f )
by Jean-Christophe
02:11
created

CRUDEvents::beforeLoadView()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 2
1
<?php
2
3
namespace Ubiquity\controllers\crud;
4
5
class CRUDEvents {
6
	
7
	protected $controller;
8
	
9
	public function __construct($controller){
10
		$this->controller=$controller;
11
	}
12
	
13
	public function onDetailClickURL($model){
0 ignored issues
show
Unused Code introduced by
The parameter $model is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
14
		return "";
15
	}
16
	
17
	public function onSuccessDeleteMessage(CRUDMessage $message):CRUDMessage{
18
		return $message;
19
	}
20
	
21
	public function onErrorDeleteMessage(CRUDMessage $message):CRUDMessage{
22
		return $message;
23
	}
24
	
25
	public function onConfDeleteMessage(CRUDMessage $message):CRUDMessage{
26
		return $message;
27
	}
28
	
29
	public function onSuccessUpdateMessage(CRUDMessage $message):CRUDMessage{
30
		return $message;
31
	}
32
	
33
	public function onErrorUpdateMessage(CRUDMessage $message):CRUDMessage{
34
		return $message;
35
	}
36
	
37
	public function onNotFoundMessage(CRUDMessage $message):CRUDMessage{
38
		return $message;
39
	}
40
	
41
	public function beforeLoadView($viewName,&$vars){
2 ignored issues
show
Unused Code introduced by
The parameter $viewName is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $vars is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
42
		
43
	}
44
}
45
46