1 | <?php |
||
21 | class MainColumn extends DataColumn |
||
22 | { |
||
23 | /** |
||
24 | * @var true|string |
||
25 | * true - note editing is enabled in this column, target attribute name is `note` |
||
26 | * string - target atttribute name |
||
27 | */ |
||
28 | public $note; |
||
29 | |||
30 | /** |
||
31 | * @var string name of attribute with extra data showed under main data |
||
32 | */ |
||
33 | public $extraAttribute; |
||
34 | |||
35 | /** |
||
36 | * @var array will be passed to the ```pluginOptions``` of [[XEditable]] plugin |
||
37 | */ |
||
38 | public $noteOptions = []; |
||
39 | |||
40 | /** |
||
41 | * @var string|Closure badges string or callback to render badges |
||
42 | */ |
||
43 | public $badges; |
||
44 | |||
45 | /** |
||
46 | * Builds url. |
||
47 | * @param string $url |
||
48 | * @return string |
||
49 | */ |
||
50 | public function buildUrl($url) |
||
58 | |||
59 | public function init() |
||
66 | |||
67 | /** {@inheritdoc} */ |
||
68 | protected function renderDataCellContent($model, $key, $index) |
||
85 | |||
86 | public function renderExtra($model) |
||
92 | |||
93 | public function renderViewLink($model, $key, $index) |
||
98 | |||
99 | /** |
||
100 | * Renders link to edit note. |
||
101 | * @param $model |
||
102 | * @param $key |
||
103 | * @param $index |
||
104 | * @return string|null |
||
105 | */ |
||
106 | public function renderNoteLink($model, $key, $index) |
||
114 | } |
||
115 |
This check looks for a call to a parent method whose name is different than the method from which it is called.
Consider the following code:
The
getFirstName()
method in theSon
calls the wrong method in the parent class.