1 | <?php |
||
20 | class MainColumn extends DataColumn |
||
21 | { |
||
22 | /** |
||
23 | * @var true|string |
||
24 | * true - note editing is enabled in this column, target attribute name is `note` |
||
25 | * string - target atttribute name |
||
26 | */ |
||
27 | public $note; |
||
28 | |||
29 | /** |
||
30 | * @var array will be passed to the ```pluginOptions``` of [[XEditable]] plugin |
||
31 | */ |
||
32 | public $noteOptions = []; |
||
33 | |||
34 | /** |
||
35 | * Builds url. |
||
36 | * @param string $url |
||
37 | * @return string |
||
38 | */ |
||
39 | public function buildUrl($url) |
||
47 | |||
48 | public function init() |
||
55 | |||
56 | /** {@inheritdoc} */ |
||
57 | protected function renderDataCellContent($model, $key, $index) |
||
66 | |||
67 | /** |
||
68 | * Renders link to edit note. |
||
69 | * @param $model |
||
70 | * @param $key |
||
71 | * @param $index |
||
72 | * @return string |
||
73 | */ |
||
74 | public function renderEditableNote($model, $key, $index) |
||
82 | } |
||
83 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.