| 1 | <?php |
||
| 6 | abstract class AbstractLayout |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * @var string $cssFramework Тип верстки. Допустимые значения: html, bootstrap3, bootstrap4 |
||
| 10 | */ |
||
| 11 | protected $cssFramework; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var string $orientation Тип верстки формы |
||
| 15 | */ |
||
| 16 | protected $orientation; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var string $formClasses Классы, которые надо назначить на форму |
||
| 20 | */ |
||
| 21 | protected $formClasses = ''; |
||
| 22 | |||
| 23 | protected $elementClasses = ''; |
||
| 24 | |||
| 25 | protected $orientationDir; |
||
| 26 | |||
| 27 | abstract protected function setFormClasses(); |
||
| 28 | |||
| 29 | /** |
||
| 30 | * AbstractLayout constructor. |
||
| 31 | */ |
||
| 32 | public function __construct() |
||
| 36 | |||
| 37 | public function orientation(?string $orientation = null): self |
||
| 45 | |||
| 46 | public function getViewsDirPath(): string |
||
| 50 | |||
| 51 | public function getFormClasses(): string |
||
| 55 | |||
| 56 | public function getElementClasses(): string |
||
| 60 | |||
| 61 | } |