@@ 7-35 (lines=29) @@ | ||
4 | ||
5 | use Rudolf\Framework\View\AdminView; |
|
6 | ||
7 | class DelView extends AdminView |
|
8 | { |
|
9 | /** |
|
10 | * @var Gallery |
|
11 | */ |
|
12 | protected $gallery; |
|
13 | ||
14 | /** |
|
15 | * @var string |
|
16 | */ |
|
17 | protected $path; |
|
18 | ||
19 | /** |
|
20 | * Set data to delete gallery. |
|
21 | * |
|
22 | * @param array $gallery |
|
23 | */ |
|
24 | public function delGallery(array $gallery) |
|
25 | { |
|
26 | $this->gallery = new Gallery($gallery); |
|
27 | ||
28 | $this->pageTitle = _('Delete gallery'); |
|
29 | $this->head->setTitle($this->pageTitle); |
|
30 | ||
31 | $this->path = $this->gallery->delUrl(); |
|
32 | ||
33 | $this->template = 'gallery-del'; |
|
34 | } |
|
35 | } |
|
36 |
@@ 8-40 (lines=33) @@ | ||
5 | use Rudolf\Framework\View\AdminView; |
|
6 | use Rudolf\Modules\Categories\CategoryAddon; |
|
7 | ||
8 | class AddView extends AdminView |
|
9 | { |
|
10 | use CategoryAddon; |
|
11 | ||
12 | /** |
|
13 | * @var Album |
|
14 | */ |
|
15 | protected $album; |
|
16 | ||
17 | /** |
|
18 | * @var string |
|
19 | */ |
|
20 | protected $path; |
|
21 | ||
22 | /** |
|
23 | * Set data do add album. |
|
24 | * |
|
25 | * @param array $album |
|
26 | */ |
|
27 | public function addAlbum(array $album) |
|
28 | { |
|
29 | $this->album = new Album($album); |
|
30 | ||
31 | $this->pageTitle = _('Add album'); |
|
32 | $this->head->setTitle($this->pageTitle); |
|
33 | ||
34 | $this->path = DIR.'/admin/albums/add'; |
|
35 | ||
36 | $this->templateType = 'add'; |
|
37 | ||
38 | $this->template = 'albums-one'; |
|
39 | } |
|
40 | } |
|
41 |
@@ 8-40 (lines=33) @@ | ||
5 | use Rudolf\Framework\View\AdminView; |
|
6 | use Rudolf\Modules\Categories\CategoryAddon; |
|
7 | ||
8 | class AddView extends AdminView |
|
9 | { |
|
10 | use CategoryAddon; |
|
11 | ||
12 | /** |
|
13 | * @var Article |
|
14 | */ |
|
15 | protected $article; |
|
16 | ||
17 | /** |
|
18 | * @var string |
|
19 | */ |
|
20 | protected $path; |
|
21 | ||
22 | /** |
|
23 | * Set data do add article. |
|
24 | * |
|
25 | * @param array $article |
|
26 | */ |
|
27 | public function addArticle(array $article) |
|
28 | { |
|
29 | $this->article = new Article($article); |
|
30 | ||
31 | $this->pageTitle = _('Add article'); |
|
32 | $this->head->setTitle($this->pageTitle); |
|
33 | ||
34 | $this->path = DIR.'/admin/articles/add'; |
|
35 | ||
36 | $this->templateType = 'add'; |
|
37 | ||
38 | $this->template = 'articles-one'; |
|
39 | } |
|
40 | } |
|
41 |
@@ 7-35 (lines=29) @@ | ||
4 | ||
5 | use Rudolf\Framework\View\AdminView; |
|
6 | ||
7 | class AddView 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 add(array $category) |
|
23 | { |
|
24 | $this->category = new Category($category); |
|
25 | ||
26 | $this->pageTitle = _('Add category'); |
|
27 | $this->head->setTitle($this->pageTitle); |
|
28 | ||
29 | $this->path = DIR.'/admin/albums/categories/add'; |
|
30 | ||
31 | $this->templateType = 'add'; |
|
32 | ||
33 | $this->template = 'category-one'; |
|
34 | } |
|
35 | } |
|
36 |
@@ 7-35 (lines=29) @@ | ||
4 | ||
5 | use Rudolf\Framework\View\AdminView; |
|
6 | ||
7 | class AddView 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 add(array $category) |
|
23 | { |
|
24 | $this->category = new Category($category); |
|
25 | ||
26 | $this->pageTitle = _('Add category'); |
|
27 | $this->head->setTitle($this->pageTitle); |
|
28 | ||
29 | $this->path = DIR.'/admin/articles/categories/add'; |
|
30 | ||
31 | $this->templateType = 'add'; |
|
32 | ||
33 | $this->template = 'category-one'; |
|
34 | } |
|
35 | } |
|
36 |
@@ 7-37 (lines=31) @@ | ||
4 | ||
5 | use Rudolf\Framework\View\AdminView; |
|
6 | ||
7 | class AddView extends AdminView |
|
8 | { |
|
9 | /** |
|
10 | * @var Gallery |
|
11 | */ |
|
12 | protected $gallery; |
|
13 | ||
14 | /** |
|
15 | * @var string |
|
16 | */ |
|
17 | protected $path; |
|
18 | ||
19 | /** |
|
20 | * Set data to add gallery. |
|
21 | * |
|
22 | * @param array $gallery |
|
23 | */ |
|
24 | public function addGallery(array $gallery) |
|
25 | { |
|
26 | $this->gallery = new Gallery($gallery); |
|
27 | ||
28 | $this->pageTitle = _('Add gallery'); |
|
29 | $this->head->setTitle($this->pageTitle); |
|
30 | ||
31 | $this->path = DIR.'/admin/galleries/add'; |
|
32 | ||
33 | $this->templateType = 'add'; |
|
34 | ||
35 | $this->template = 'gallery-one'; |
|
36 | } |
|
37 | } |
|
38 |
@@ 7-39 (lines=33) @@ | ||
4 | ||
5 | use Rudolf\Framework\View\AdminView; |
|
6 | ||
7 | class AddView extends AdminView |
|
8 | { |
|
9 | use PagesAddon; |
|
10 | ||
11 | /** |
|
12 | * @var Page |
|
13 | */ |
|
14 | protected $page; |
|
15 | ||
16 | /** |
|
17 | * @var string |
|
18 | */ |
|
19 | protected $path; |
|
20 | ||
21 | /** |
|
22 | * Set data do add page. |
|
23 | * |
|
24 | * @param array $page |
|
25 | */ |
|
26 | public function addPage(array $page) |
|
27 | { |
|
28 | $this->page = new Page($page); |
|
29 | ||
30 | $this->pageTitle = _('Add page'); |
|
31 | $this->head->setTitle($this->pageTitle); |
|
32 | ||
33 | $this->path = DIR.'/admin/pages/add'; |
|
34 | ||
35 | $this->templateType = 'add'; |
|
36 | ||
37 | $this->template = 'pages-one'; |
|
38 | } |
|
39 | } |
|
40 |
@@ 8-24 (lines=17) @@ | ||
5 | use Rudolf\Framework\View\AdminView; |
|
6 | use Rudolf\Modules\Users\One\Admin\User; |
|
7 | ||
8 | class AddView extends AdminView |
|
9 | { |
|
10 | protected $user; |
|
11 | ||
12 | protected $path; |
|
13 | ||
14 | public function display() |
|
15 | { |
|
16 | $this->pageTitle = _('Profile'); |
|
17 | $this->head->setTitle($this->pageTitle); |
|
18 | ||
19 | $this->user = new User(); |
|
20 | $this->path = DIR.'/admin/users/add'; |
|
21 | $this->templateType = 'add'; |
|
22 | $this->template = 'user-one'; |
|
23 | } |
|
24 | } |
|
25 |
@@ 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 |