@@ -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(); |
@@ -9,11 +9,11 @@ |
||
9 | 9 | |
10 | 10 | namespace Ublaboo\DataGrid\DataSource; |
11 | 11 | |
12 | -use Doctrine\ORM\QueryBuilder, |
|
13 | - Ublaboo\DataGrid\Filter, |
|
14 | - Nette\Utils\Callback, |
|
15 | - Nette\Utils\Strings, |
|
16 | - Doctrine; |
|
12 | +use Doctrine\ORM\QueryBuilder; |
|
13 | +use Ublaboo\DataGrid\Filter; |
|
14 | +use Nette\Utils\Callback; |
|
15 | +use Nette\Utils\Strings; |
|
16 | +use Doctrine; |
|
17 | 17 | |
18 | 18 | class DoctrineDataSource implements IDataSource |
19 | 19 | { |
@@ -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 |
@@ -1503,7 +1503,7 @@ discard block |
||
1503 | 1503 | |
1504 | 1504 | /** |
1505 | 1505 | * Set options of select "items_per_page" |
1506 | - * @param array $items_per_page_list |
|
1506 | + * @param integer[] $items_per_page_list |
|
1507 | 1507 | */ |
1508 | 1508 | public function setItemsPerPageList(array $items_per_page_list, $include_all = TRUE) |
1509 | 1509 | { |
@@ -1879,6 +1879,9 @@ discard block |
||
1879 | 1879 | } |
1880 | 1880 | |
1881 | 1881 | |
1882 | + /** |
|
1883 | + * @param string $name |
|
1884 | + */ |
|
1882 | 1885 | public function getRowCondition($name, $key = NULL) |
1883 | 1886 | { |
1884 | 1887 | if (!isset($this->row_conditions[$name])) { |
@@ -1912,7 +1915,6 @@ discard block |
||
1912 | 1915 | |
1913 | 1916 | /** |
1914 | 1917 | * Order Grid to set columns hideable. |
1915 | - * @param bool $do |
|
1916 | 1918 | * @return static |
1917 | 1919 | */ |
1918 | 1920 | public function setColumnsHideable() |