@@ 10-101 (lines=92) @@ | ||
7 | /** |
|
8 | * The PagePartAdminConfigurator for the AbstractArticleOverviewPage |
|
9 | */ |
|
10 | class AbstractArticleOverviewPagePagePartAdminConfigurator extends AbstractPagePartAdminConfigurator |
|
11 | { |
|
12 | /** |
|
13 | * @var array |
|
14 | */ |
|
15 | protected $pagePartTypes; |
|
16 | ||
17 | /** |
|
18 | * @param array $pagePartTypes |
|
19 | */ |
|
20 | public function __construct(array $pagePartTypes = array()) |
|
21 | { |
|
22 | $this->pagePartTypes = array_merge( |
|
23 | array( |
|
24 | array( |
|
25 | 'name' => 'Header', |
|
26 | 'class' => 'Kunstmaan\PagePartBundle\Entity\HeaderPagePart', |
|
27 | ), |
|
28 | array( |
|
29 | 'name' => 'Text', |
|
30 | 'class' => 'Kunstmaan\PagePartBundle\Entity\TextPagePart', |
|
31 | ), |
|
32 | array( |
|
33 | 'name' => 'Line', |
|
34 | 'class' => 'Kunstmaan\PagePartBundle\Entity\LinePagePart', |
|
35 | ), |
|
36 | array( |
|
37 | 'name' => 'TOC', |
|
38 | 'class' => 'Kunstmaan\PagePartBundle\Entity\TocPagePart', |
|
39 | ), |
|
40 | array( |
|
41 | 'name' => 'Link', |
|
42 | 'class' => 'Kunstmaan\PagePartBundle\Entity\LinkPagePart', |
|
43 | ), |
|
44 | array( |
|
45 | 'name' => 'To Top', |
|
46 | 'class' => 'Kunstmaan\PagePartBundle\Entity\ToTopPagePart', |
|
47 | ), |
|
48 | array( |
|
49 | 'name' => 'Image', |
|
50 | 'class' => 'Kunstmaan\MediaPagePartBundle\Entity\ImagePagePart', |
|
51 | ), |
|
52 | array( |
|
53 | 'name' => 'Download', |
|
54 | 'class' => 'Kunstmaan\MediaPagePartBundle\Entity\DownloadPagePart', |
|
55 | ), |
|
56 | array( |
|
57 | 'name' => 'Slide', |
|
58 | 'class' => 'Kunstmaan\MediaPagePartBundle\Entity\SlidePagePart', |
|
59 | ), |
|
60 | array( |
|
61 | 'name' => 'Video', |
|
62 | 'class' => 'Kunstmaan\MediaPagePartBundle\Entity\VideoPagePart', |
|
63 | ), |
|
64 | ), $pagePartTypes |
|
65 | ); |
|
66 | } |
|
67 | ||
68 | /** |
|
69 | * @return array |
|
70 | */ |
|
71 | public function getPossiblePagePartTypes() |
|
72 | { |
|
73 | return $this->pagePartTypes; |
|
74 | } |
|
75 | ||
76 | /** |
|
77 | * @return string |
|
78 | */ |
|
79 | public function getName() |
|
80 | { |
|
81 | return 'Page parts'; |
|
82 | } |
|
83 | ||
84 | /** |
|
85 | * @return string |
|
86 | */ |
|
87 | public function getContext() |
|
88 | { |
|
89 | return 'main'; |
|
90 | } |
|
91 | ||
92 | /** |
|
93 | * @return string |
|
94 | */ |
|
95 | public function getWidgetTemplate() |
|
96 | { |
|
97 | return ''; |
|
98 | } |
|
99 | } |
|
100 |
@@ 10-101 (lines=92) @@ | ||
7 | /** |
|
8 | * The PagePartAdminConfigurator for the AbstractArticlePage |
|
9 | */ |
|
10 | class AbstractArticlePagePagePartAdminConfigurator extends AbstractPagePartAdminConfigurator |
|
11 | { |
|
12 | /** |
|
13 | * @var array |
|
14 | */ |
|
15 | protected $pagePartTypes; |
|
16 | ||
17 | /** |
|
18 | * @param array $pagePartTypes |
|
19 | */ |
|
20 | public function __construct(array $pagePartTypes = array()) |
|
21 | { |
|
22 | $this->pagePartTypes = array_merge( |
|
23 | array( |
|
24 | array( |
|
25 | 'name' => 'Header', |
|
26 | 'class' => 'Kunstmaan\PagePartBundle\Entity\HeaderPagePart', |
|
27 | ), |
|
28 | array( |
|
29 | 'name' => 'Text', |
|
30 | 'class' => 'Kunstmaan\PagePartBundle\Entity\TextPagePart', |
|
31 | ), |
|
32 | array( |
|
33 | 'name' => 'Line', |
|
34 | 'class' => 'Kunstmaan\PagePartBundle\Entity\LinePagePart', |
|
35 | ), |
|
36 | array( |
|
37 | 'name' => 'TOC', |
|
38 | 'class' => 'Kunstmaan\PagePartBundle\Entity\TocPagePart', |
|
39 | ), |
|
40 | array( |
|
41 | 'name' => 'Link', |
|
42 | 'class' => 'Kunstmaan\PagePartBundle\Entity\LinkPagePart', |
|
43 | ), |
|
44 | array( |
|
45 | 'name' => 'To Top', |
|
46 | 'class' => 'Kunstmaan\PagePartBundle\Entity\ToTopPagePart', |
|
47 | ), |
|
48 | array( |
|
49 | 'name' => 'Image', |
|
50 | 'class' => 'Kunstmaan\MediaPagePartBundle\Entity\ImagePagePart', |
|
51 | ), |
|
52 | array( |
|
53 | 'name' => 'Download', |
|
54 | 'class' => 'Kunstmaan\MediaPagePartBundle\Entity\DownloadPagePart', |
|
55 | ), |
|
56 | array( |
|
57 | 'name' => 'Slide', |
|
58 | 'class' => 'Kunstmaan\MediaPagePartBundle\Entity\SlidePagePart', |
|
59 | ), |
|
60 | array( |
|
61 | 'name' => 'Video', |
|
62 | 'class' => 'Kunstmaan\MediaPagePartBundle\Entity\VideoPagePart', |
|
63 | ), |
|
64 | ), $pagePartTypes |
|
65 | ); |
|
66 | } |
|
67 | ||
68 | /** |
|
69 | * @return array |
|
70 | */ |
|
71 | public function getPossiblePagePartTypes() |
|
72 | { |
|
73 | return $this->pagePartTypes; |
|
74 | } |
|
75 | ||
76 | /** |
|
77 | * @return string |
|
78 | */ |
|
79 | public function getName() |
|
80 | { |
|
81 | return 'Page parts'; |
|
82 | } |
|
83 | ||
84 | /** |
|
85 | * @return string |
|
86 | */ |
|
87 | public function getContext() |
|
88 | { |
|
89 | return 'main'; |
|
90 | } |
|
91 | ||
92 | /** |
|
93 | * @return string |
|
94 | */ |
|
95 | public function getWidgetTemplate() |
|
96 | { |
|
97 | return ''; |
|
98 | } |
|
99 | } |
|
100 |