@@ -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 | |
@@ -462,7 +462,7 @@ discard block |
||
| 462 | 462 | |
| 463 | 463 | /** |
| 464 | 464 | * Set sortable handle |
| 465 | - * @param string $handle |
|
| 465 | + * @param string $handler |
|
| 466 | 466 | */ |
| 467 | 467 | public function setSortableHandler($handler = 'sort!') |
| 468 | 468 | { |
@@ -1438,7 +1438,7 @@ discard block |
||
| 1438 | 1438 | |
| 1439 | 1439 | /** |
| 1440 | 1440 | * Set options of select "items_per_page" |
| 1441 | - * @param array $items_per_page_list |
|
| 1441 | + * @param integer[] $items_per_page_list |
|
| 1442 | 1442 | */ |
| 1443 | 1443 | public function setItemsPerPageList(array $items_per_page_list, $include_all = TRUE) |
| 1444 | 1444 | { |
@@ -1814,6 +1814,9 @@ discard block |
||
| 1814 | 1814 | } |
| 1815 | 1815 | |
| 1816 | 1816 | |
| 1817 | + /** |
|
| 1818 | + * @param string $name |
|
| 1819 | + */ |
|
| 1817 | 1820 | public function getRowCondition($name, $key = NULL) |
| 1818 | 1821 | { |
| 1819 | 1822 | if (!isset($this->row_conditions[$name])) { |
@@ -1847,7 +1850,6 @@ discard block |
||
| 1847 | 1850 | |
| 1848 | 1851 | /** |
| 1849 | 1852 | * Order Grid to set columns hideable. |
| 1850 | - * @param bool $do |
|
| 1851 | 1853 | * @return static |
| 1852 | 1854 | */ |
| 1853 | 1855 | public function setColumnsHideable() |