Passed
Push — master ( 79d87e...9ca7ac )
by Alexey
05:33
created

Action::groupAction()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 4
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * Data manager action
5
 *
6
 * @author Alexey Krupskiy <[email protected]>
7
 * @link http://inji.ru/
8
 * @copyright 2016 Alexey Krupskiy
9
 * @license https://github.com/injitools/cms-Inji/blob/master/LICENSE
10
 */
11
12
namespace Ui\DataManager;
13
14
class Action extends \Object {
15
16
    public static $name = '';
17
    public static $groupAction = false;
18
    public static $rowAction = false;
19
    public static $managerAction = false;
20
21
    /**
22
     * Must return button text for row in manager
23
     * 
24
     * @param \Ui\DataManager $dataManager
25
     * @param \Model $item
26
     * @param array $params
27
     * @param array $actionParams
28
     * @return string
29
     */
30
    public static function rowButton($dataManager, $item, $params, $actionParams) {
31
        return '';
32
    }
33
34
    /**
35
     * Must return button options array for manager actions
36
     * 
37
     * @param \Ui\DataManager $dataManager
38
     * @param array $formParams
39
     * @param array $actionParams
40
     * @return array
41
     */
42
    public static function managerButton($dataManager, $formParams, $actionParams) {
43
        return '';
44
    }
45
46
    /**
47
     * Call if user choose rows and call action in manager. Return result msg.
48
     * 
49
     * @param \Ui\DataManager $dataManager
50
     * @param string $ids
51
     * @param array $actionParams
52
     * @param array $adInfo
53
     * @return string
54
     */
55
    public static function groupAction($dataManager, $ids, $actionParams, $adInfo) {
0 ignored issues
show
Unused Code introduced by
The parameter $adInfo 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...
56
        return 'empty action';
57
    }
58
}