@@ -52,7 +52,7 @@ |
||
52 | 52 | |
53 | 53 | /** |
54 | 54 | * @return Doctrine\ORM\Query |
55 | - */ |
|
55 | + */ |
|
56 | 56 | public function getQuery() |
57 | 57 | { |
58 | 58 | return $this->data_source->getQuery(); |
@@ -65,7 +65,7 @@ |
||
65 | 65 | return $column; |
66 | 66 | } |
67 | 67 | |
68 | - return current($this->data_source->getRootAliases()) . '.' . $column; |
|
68 | + return current($this->data_source->getRootAliases()).'.'.$column; |
|
69 | 69 | } |
70 | 70 | |
71 | 71 |
@@ -1928,7 +1928,7 @@ |
||
1928 | 1928 | $parent = parent::getParent(); |
1929 | 1929 | if (!$parent instanceof PresenterComponent) { |
1930 | 1930 | throw new DataGridHasToBeAttachedToPresenterComponentException( |
1931 | - "DataGrid is attached to: '" . get_class($parent) . "', but instance of PresenterComponent is needed." |
|
1931 | + "DataGrid is attached to: '".get_class($parent)."', but instance of PresenterComponent is needed." |
|
1932 | 1932 | ); |
1933 | 1933 | } |
1934 | 1934 |
@@ -1870,7 +1870,7 @@ discard block |
||
1870 | 1870 | |
1871 | 1871 | /** |
1872 | 1872 | * Set options of select "items_per_page" |
1873 | - * @param array $items_per_page_list |
|
1873 | + * @param integer[] $items_per_page_list |
|
1874 | 1874 | * @return static |
1875 | 1875 | */ |
1876 | 1876 | public function setItemsPerPageList(array $items_per_page_list, $include_all = TRUE) |
@@ -2177,7 +2177,7 @@ discard block |
||
2177 | 2177 | |
2178 | 2178 | /** |
2179 | 2179 | * Get items detail parameters |
2180 | - * @return array |
|
2180 | + * @return Column\ItemDetail |
|
2181 | 2181 | */ |
2182 | 2182 | public function getItemsDetail() |
2183 | 2183 | { |
@@ -2251,7 +2251,7 @@ discard block |
||
2251 | 2251 | |
2252 | 2252 | |
2253 | 2253 | /** |
2254 | - * @return Nette\Forms\Container|NULL |
|
2254 | + * @return Utils\ItemDetailForm|null |
|
2255 | 2255 | */ |
2256 | 2256 | public function getItemDetailForm() |
2257 | 2257 | { |
@@ -2353,7 +2353,7 @@ discard block |
||
2353 | 2353 | |
2354 | 2354 | |
2355 | 2355 | /** |
2356 | - * @return InlineEdit|null |
|
2356 | + * @return InlineEdit |
|
2357 | 2357 | */ |
2358 | 2358 | public function getInlineEdit() |
2359 | 2359 | { |
@@ -2401,7 +2401,7 @@ discard block |
||
2401 | 2401 | |
2402 | 2402 | |
2403 | 2403 | /** |
2404 | - * @return InlineEdit|null |
|
2404 | + * @return InlineEdit |
|
2405 | 2405 | */ |
2406 | 2406 | public function getInlineAdd() |
2407 | 2407 | { |
@@ -10,7 +10,6 @@ |
||
10 | 10 | |
11 | 11 | use Nette\Utils\Html; |
12 | 12 | use Ublaboo\DataGrid\DataGrid; |
13 | -use Ublaboo\DataGrid\Exception\DataGridHasToBeAttachedToPresenterComponentException; |
|
14 | 13 | use Ublaboo\DataGrid\Exception\DataGridException; |
15 | 14 | use Ublaboo\DataGrid\Row; |
16 | 15 |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | /** |
186 | 186 | * Set icon |
187 | 187 | * @param string|callable $icon |
188 | - * @return static|callable |
|
188 | + * @return Action |
|
189 | 189 | * @throws DataGridException |
190 | 190 | */ |
191 | 191 | public function setIcon($icon) |
@@ -270,7 +270,8 @@ discard block |
||
270 | 270 | |
271 | 271 | /** |
272 | 272 | * Check whether given property is string or callable |
273 | - * @param mixed $property |
|
273 | + * @param callable $property |
|
274 | + * @param string $name |
|
274 | 275 | * @return void |
275 | 276 | * @throws DataGridException |
276 | 277 | */ |
@@ -10,7 +10,6 @@ |
||
10 | 10 | |
11 | 11 | use Nette\Utils\Html; |
12 | 12 | use Ublaboo\DataGrid\DataGrid; |
13 | -use Ublaboo\DataGrid\Exception\DataGridHasToBeAttachedToPresenterComponentException; |
|
14 | 13 | use Ublaboo\DataGrid\Exception\DataGridException; |
15 | 14 | use Ublaboo\DataGrid\Row; |
16 | 15 |
@@ -90,7 +90,7 @@ |
||
90 | 90 | ]); |
91 | 91 | |
92 | 92 | if ($this->icon) { |
93 | - $a->add(Html::el('span')->class(DataGrid::$icon_prefix . $this->icon)); |
|
93 | + $a->add(Html::el('span')->class(DataGrid::$icon_prefix.$this->icon)); |
|
94 | 94 | |
95 | 95 | if (strlen($this->text)) { |
96 | 96 | $a->add(' '); |
@@ -9,7 +9,6 @@ |
||
9 | 9 | namespace Ublaboo\DataGrid\DataSource; |
10 | 10 | |
11 | 11 | use DibiFluent; |
12 | -use Nette\Utils\Callback; |
|
13 | 12 | use Nette\Utils\Strings; |
14 | 13 | use Ublaboo\DataGrid\Filter; |
15 | 14 |
@@ -8,9 +8,7 @@ |
||
8 | 8 | |
9 | 9 | namespace Ublaboo\DataGrid\DataSource; |
10 | 10 | |
11 | -use DibiFluent; |
|
12 | 11 | use Nette\Utils\Callback; |
13 | -use Nette\Utils\Strings; |
|
14 | 12 | use Ublaboo\DataGrid\Filter; |
15 | 13 | |
16 | 14 | abstract class FilterableDataSource |
@@ -48,7 +48,7 @@ |
||
48 | 48 | |
49 | 49 | $this->key = $key; |
50 | 50 | |
51 | - $this->setTemplate(__DIR__ . '/../templates/column_status.latte'); |
|
51 | + $this->setTemplate(__DIR__.'/../templates/column_status.latte'); |
|
52 | 52 | } |
53 | 53 | |
54 | 54 |
@@ -10,7 +10,6 @@ |
||
10 | 10 | |
11 | 11 | use Ublaboo\DataGrid\DataGrid; |
12 | 12 | use Nette\Utils\Html; |
13 | -use Ublaboo\DataGrid\Row; |
|
14 | 13 | |
15 | 14 | trait ButtonIconTrait |
16 | 15 | { |
@@ -10,9 +10,7 @@ |
||
10 | 10 | |
11 | 11 | use Ublaboo\DataGrid\Filter\Filter; |
12 | 12 | use Ublaboo\DataGrid\Filter\FilterDate; |
13 | -use Nette\Utils\Callback; |
|
14 | 13 | use Nette\Utils\Strings; |
15 | -use Ublaboo\DataGrid\Exception\DataGridException; |
|
16 | 14 | use Ublaboo\DataGrid\Exception\DataGridArrayDataSourceException; |
17 | 15 | use Ublaboo\DataGrid\Utils\DateTimeHelper; |
18 | 16 | use Ublaboo\DataGrid\Exception\DataGridDateTimeHelperException; |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | * Filter by multi select value |
164 | 164 | * @param mixed $row |
165 | 165 | * @param FilterMultiSelect $filter |
166 | - * @return void |
|
166 | + * @return boolean |
|
167 | 167 | */ |
168 | 168 | public function applyFilterMultiSelect($row, FilterMultiSelect $filter) |
169 | 169 | { |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | * Apply fitler date and tell whether row value matches or not |
179 | 179 | * @param mixed $row |
180 | 180 | * @param Filter $filter |
181 | - * @return mixed |
|
181 | + * @return boolean|null |
|
182 | 182 | */ |
183 | 183 | protected function applyFilterDate($row, FilterDate $filter) |
184 | 184 | { |