| @@ 7-37 (lines=31) @@ | ||
| 4 | ||
| 5 | use Rudolf\Framework\View\AdminView; |
|
| 6 | ||
| 7 | class DelView extends AdminView |
|
| 8 | { |
|
| 9 | /** |
|
| 10 | * @var Category |
|
| 11 | */ |
|
| 12 | protected $category; |
|
| 13 | ||
| 14 | /** |
|
| 15 | * @var string |
|
| 16 | */ |
|
| 17 | protected $path; |
|
| 18 | ||
| 19 | /** |
|
| 20 | * Set data to delete category. |
|
| 21 | * |
|
| 22 | * @param array $category |
|
| 23 | */ |
|
| 24 | public function delCategory(array $category) |
|
| 25 | { |
|
| 26 | $this->category = new Category($category); |
|
| 27 | ||
| 28 | $this->pageTitle = _('Delete category'); |
|
| 29 | $this->head->setTitle($this->pageTitle); |
|
| 30 | ||
| 31 | $this->path = $this->category->delUrl(); |
|
| 32 | ||
| 33 | $this->templateType = 'del'; |
|
| 34 | ||
| 35 | $this->template = 'categories-del'; |
|
| 36 | } |
|
| 37 | } |
|
| 38 | ||
| @@ 7-35 (lines=29) @@ | ||
| 4 | ||
| 5 | use Rudolf\Framework\View\AdminView; |
|
| 6 | ||
| 7 | class EditView extends AdminView |
|
| 8 | { |
|
| 9 | /** |
|
| 10 | * @var Category |
|
| 11 | */ |
|
| 12 | protected $category; |
|
| 13 | ||
| 14 | /** |
|
| 15 | * @var string |
|
| 16 | */ |
|
| 17 | protected $path; |
|
| 18 | ||
| 19 | /** |
|
| 20 | * @param array $category |
|
| 21 | */ |
|
| 22 | public function edit(array $category) |
|
| 23 | { |
|
| 24 | $this->category = new Category($category); |
|
| 25 | ||
| 26 | $this->pageTitle = _('Edit category'); |
|
| 27 | $this->head->setTitle($this->pageTitle); |
|
| 28 | ||
| 29 | $this->path = $this->category->editUrl(); |
|
| 30 | ||
| 31 | $this->templateType = 'edit'; |
|
| 32 | ||
| 33 | $this->template = 'category-one'; |
|
| 34 | } |
|
| 35 | } |
|
| 36 | ||
| @@ 8-37 (lines=30) @@ | ||
| 5 | use Rudolf\Component\Helpers\Navigation\MenuItemCollection; |
|
| 6 | use Rudolf\Framework\View\AdminView; |
|
| 7 | ||
| 8 | class ItemAddView extends AdminView |
|
| 9 | { |
|
| 10 | /** |
|
| 11 | * @var MenuItem |
|
| 12 | */ |
|
| 13 | protected $item; |
|
| 14 | ||
| 15 | /** |
|
| 16 | * @var array |
|
| 17 | */ |
|
| 18 | protected $types; |
|
| 19 | ||
| 20 | /** |
|
| 21 | * @var MenuItemCollection |
|
| 22 | */ |
|
| 23 | protected $items; |
|
| 24 | ||
| 25 | public function display($data, $types, $items) |
|
| 26 | { |
|
| 27 | $this->pageTitle = _('Menu editor'); |
|
| 28 | $this->head->setTitle($this->pageTitle); |
|
| 29 | $this->item = $data; |
|
| 30 | $this->types = $types; |
|
| 31 | $this->items = $items; |
|
| 32 | ||
| 33 | $this->templateType = 'add'; |
|
| 34 | ||
| 35 | $this->template = 'appearance-menu-item'; |
|
| 36 | } |
|
| 37 | } |
|
| 38 | ||
| @@ 7-25 (lines=19) @@ | ||
| 4 | ||
| 5 | use Rudolf\Framework\View\AdminView; |
|
| 6 | ||
| 7 | class ItemEditView extends AdminView |
|
| 8 | { |
|
| 9 | protected $item; |
|
| 10 | protected $types; |
|
| 11 | protected $items; |
|
| 12 | ||
| 13 | public function display($data, $types, $items) |
|
| 14 | { |
|
| 15 | $this->pageTitle = _('Menu editor'); |
|
| 16 | $this->head->setTitle($this->pageTitle); |
|
| 17 | $this->item = $data; |
|
| 18 | $this->types = $types; |
|
| 19 | $this->items = $items; |
|
| 20 | ||
| 21 | $this->templateType = 'edit'; |
|
| 22 | ||
| 23 | $this->template = 'appearance-menu-item'; |
|
| 24 | } |
|
| 25 | } |
|
| 26 | ||
| @@ 7-37 (lines=31) @@ | ||
| 4 | ||
| 5 | use Rudolf\Framework\View\AdminView; |
|
| 6 | ||
| 7 | class DelView extends AdminView |
|
| 8 | { |
|
| 9 | /** |
|
| 10 | * @var Category |
|
| 11 | */ |
|
| 12 | protected $category; |
|
| 13 | ||
| 14 | /** |
|
| 15 | * @var string |
|
| 16 | */ |
|
| 17 | protected $path; |
|
| 18 | ||
| 19 | /** |
|
| 20 | * Set data to delete category. |
|
| 21 | * |
|
| 22 | * @param array $category |
|
| 23 | */ |
|
| 24 | public function delCategory(array $category) |
|
| 25 | { |
|
| 26 | $this->category = new Category($category); |
|
| 27 | ||
| 28 | $this->pageTitle = _('Delete category'); |
|
| 29 | $this->head->setTitle($this->pageTitle); |
|
| 30 | ||
| 31 | $this->path = $this->category->delUrl(); |
|
| 32 | ||
| 33 | $this->templateType = 'del'; |
|
| 34 | ||
| 35 | $this->template = 'categories-del'; |
|
| 36 | } |
|
| 37 | } |
|
| 38 | ||
| @@ 7-35 (lines=29) @@ | ||
| 4 | ||
| 5 | use Rudolf\Framework\View\AdminView; |
|
| 6 | ||
| 7 | class EditView extends AdminView |
|
| 8 | { |
|
| 9 | /** |
|
| 10 | * @var Category |
|
| 11 | */ |
|
| 12 | protected $category; |
|
| 13 | ||
| 14 | /** |
|
| 15 | * @var string |
|
| 16 | */ |
|
| 17 | protected $path; |
|
| 18 | ||
| 19 | /** |
|
| 20 | * @param array $category |
|
| 21 | */ |
|
| 22 | public function edit(array $category) |
|
| 23 | { |
|
| 24 | $this->category = new Category($category); |
|
| 25 | ||
| 26 | $this->pageTitle = _('Edit category'); |
|
| 27 | $this->head->setTitle($this->pageTitle); |
|
| 28 | ||
| 29 | $this->path = $this->category->editUrl(); |
|
| 30 | ||
| 31 | $this->templateType = 'edit'; |
|
| 32 | ||
| 33 | $this->template = 'category-one'; |
|
| 34 | } |
|
| 35 | } |
|
| 36 | ||
| @@ 7-37 (lines=31) @@ | ||
| 4 | ||
| 5 | use Rudolf\Framework\View\AdminView; |
|
| 6 | ||
| 7 | class DelView extends AdminView |
|
| 8 | { |
|
| 9 | /** |
|
| 10 | * @var Page |
|
| 11 | */ |
|
| 12 | protected $page; |
|
| 13 | ||
| 14 | /** |
|
| 15 | * @var string |
|
| 16 | */ |
|
| 17 | protected $path; |
|
| 18 | ||
| 19 | /** |
|
| 20 | * Set data to delete page. |
|
| 21 | * |
|
| 22 | * @param array $page |
|
| 23 | */ |
|
| 24 | public function delPage(array $page) |
|
| 25 | { |
|
| 26 | $this->page = new Page($page); |
|
| 27 | ||
| 28 | $this->pageTitle = _('Delete page'); |
|
| 29 | $this->head->setTitle($this->pageTitle); |
|
| 30 | ||
| 31 | $this->path = $this->page->delUrl(); |
|
| 32 | ||
| 33 | $this->templateType = 'del'; |
|
| 34 | ||
| 35 | $this->template = 'pages-del'; |
|
| 36 | } |
|
| 37 | } |
|
| 38 | ||
| @@ 8-27 (lines=20) @@ | ||
| 5 | use Rudolf\Framework\View\AdminView; |
|
| 6 | use Rudolf\Modules\Users\One\Admin\User; |
|
| 7 | ||
| 8 | class EditView extends AdminView |
|
| 9 | { |
|
| 10 | /** |
|
| 11 | * @var User |
|
| 12 | */ |
|
| 13 | protected $user; |
|
| 14 | ||
| 15 | protected $path; |
|
| 16 | ||
| 17 | public function display(array $user) |
|
| 18 | { |
|
| 19 | $this->pageTitle = _('Profile'); |
|
| 20 | $this->head->setTitle($this->pageTitle); |
|
| 21 | $this->user = new User($user); |
|
| 22 | ||
| 23 | $this->path = $this->user->editUrl(); |
|
| 24 | $this->templateType = 'edit'; |
|
| 25 | $this->template = 'user-one'; |
|
| 26 | } |
|
| 27 | } |
|
| 28 | ||