| @@ 12-57 (lines=46) @@ | ||
| 9 | * @package eXpansion\Framework\Core\Model\Gui\Grid; |
|
| 10 | * @author oliver de Cramer <[email protected]> |
|
| 11 | */ |
|
| 12 | class ActionColumn extends AbstractColumn |
|
| 13 | { |
|
| 14 | protected $callable; |
|
| 15 | ||
| 16 | protected $renderer; |
|
| 17 | ||
| 18 | public function __construct($key, $name, $widthCoeficiency, $sortable, $translatable) |
|
| 19 | { |
|
| 20 | parent::__construct($key, $name, $widthCoeficiency); |
|
| 21 | ||
| 22 | $this->callable = $sortable; |
|
| 23 | $this->renderer = $translatable; |
|
| 24 | } |
|
| 25 | ||
| 26 | /** |
|
| 27 | * @return mixed |
|
| 28 | */ |
|
| 29 | public function getCallable() |
|
| 30 | { |
|
| 31 | return $this->callable; |
|
| 32 | } |
|
| 33 | ||
| 34 | /** |
|
| 35 | * @param mixed $callable |
|
| 36 | */ |
|
| 37 | public function setCallable($callable) |
|
| 38 | { |
|
| 39 | $this->callable = $callable; |
|
| 40 | } |
|
| 41 | ||
| 42 | /** |
|
| 43 | * @return mixed |
|
| 44 | */ |
|
| 45 | public function getRenderer() |
|
| 46 | { |
|
| 47 | return $this->renderer; |
|
| 48 | } |
|
| 49 | ||
| 50 | /** |
|
| 51 | * @param mixed $renderer |
|
| 52 | */ |
|
| 53 | public function setRenderer($renderer) |
|
| 54 | { |
|
| 55 | $this->renderer = $renderer; |
|
| 56 | } |
|
| 57 | } |
|
| @@ 12-57 (lines=46) @@ | ||
| 9 | * @package eXpansion\Framework\Core\Model\Gui\Grid; |
|
| 10 | * @author oliver de Cramer <[email protected]> |
|
| 11 | */ |
|
| 12 | class TextColumn extends AbstractColumn |
|
| 13 | { |
|
| 14 | protected $sortable; |
|
| 15 | ||
| 16 | protected $translatable; |
|
| 17 | ||
| 18 | public function __construct($key, $name, $widthCoeficiency, $sortable, $translatable) |
|
| 19 | { |
|
| 20 | parent::__construct($key, $name, $widthCoeficiency); |
|
| 21 | ||
| 22 | $this->sortable = $sortable; |
|
| 23 | $this->translatable = $translatable; |
|
| 24 | } |
|
| 25 | ||
| 26 | /** |
|
| 27 | * @return mixed |
|
| 28 | */ |
|
| 29 | public function getSortable() |
|
| 30 | { |
|
| 31 | return $this->sortable; |
|
| 32 | } |
|
| 33 | ||
| 34 | /** |
|
| 35 | * @param mixed $sortable |
|
| 36 | */ |
|
| 37 | public function setSortable($sortable) |
|
| 38 | { |
|
| 39 | $this->sortable = $sortable; |
|
| 40 | } |
|
| 41 | ||
| 42 | /** |
|
| 43 | * @return mixed |
|
| 44 | */ |
|
| 45 | public function getTranslatable() |
|
| 46 | { |
|
| 47 | return $this->translatable; |
|
| 48 | } |
|
| 49 | ||
| 50 | /** |
|
| 51 | * @param mixed $translatable |
|
| 52 | */ |
|
| 53 | public function setTranslatable($translatable) |
|
| 54 | { |
|
| 55 | $this->translatable = $translatable; |
|
| 56 | } |
|
| 57 | } |
|