@@ -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 | |
@@ -1532,7 +1532,7 @@ discard block |
||
| 1532 | 1532 | |
| 1533 | 1533 | /** |
| 1534 | 1534 | * Set options of select "items_per_page" |
| 1535 | - * @param array $items_per_page_list |
|
| 1535 | + * @param integer[] $items_per_page_list |
|
| 1536 | 1536 | * @return static |
| 1537 | 1537 | */ |
| 1538 | 1538 | public function setItemsPerPageList(array $items_per_page_list, $include_all = TRUE) |
@@ -1837,7 +1837,7 @@ discard block |
||
| 1837 | 1837 | |
| 1838 | 1838 | /** |
| 1839 | 1839 | * Get items detail parameters |
| 1840 | - * @return array |
|
| 1840 | + * @return Column\ItemDetail |
|
| 1841 | 1841 | */ |
| 1842 | 1842 | public function getItemsDetail() |
| 1843 | 1843 | { |
@@ -1909,6 +1909,9 @@ discard block |
||
| 1909 | 1909 | } |
| 1910 | 1910 | |
| 1911 | 1911 | |
| 1912 | + /** |
|
| 1913 | + * @param string $name |
|
| 1914 | + */ |
|
| 1912 | 1915 | public function getRowCondition($name, $key = NULL) |
| 1913 | 1916 | { |
| 1914 | 1917 | if (!isset($this->row_conditions[$name])) { |
@@ -1942,7 +1945,6 @@ discard block |
||
| 1942 | 1945 | |
| 1943 | 1946 | /** |
| 1944 | 1947 | * Order Grid to set columns hideable. |
| 1945 | - * @param bool $do |
|
| 1946 | 1948 | * @return static |
| 1947 | 1949 | */ |
| 1948 | 1950 | public function setColumnsHideable() |
@@ -217,7 +217,7 @@ |
||
| 217 | 217 | /** |
| 218 | 218 | * Set icon |
| 219 | 219 | * @param string|callable $icon |
| 220 | - * @return static|callable |
|
| 220 | + * @return Action |
|
| 221 | 221 | */ |
| 222 | 222 | public function setIcon($icon) |
| 223 | 223 | { |
@@ -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 | |