1 | <?php |
||
28 | class Page extends \Eccube\Entity\AbstractEntity |
||
29 | { |
||
30 | // 編集可能フラグ |
||
31 | const EDIT_TYPE_USER = 0; |
||
32 | const EDIT_TYPE_PREVIEW = 1; |
||
33 | const EDIT_TYPE_DEFAULT = 2; |
||
34 | |||
35 | // 特定商取引法ページID |
||
36 | const TRADELAW_PAGE_ID = 21; |
||
37 | |||
38 | // ご利用規約ページID |
||
39 | const AGREEMENT_PAGE_ID = 19; |
||
40 | |||
41 | public function getLayouts() |
||
50 | |||
51 | /** |
||
52 | * @var int |
||
53 | * |
||
54 | * @ORM\Column(name="id", type="integer", options={"unsigned":true}) |
||
55 | * @ORM\Id |
||
56 | * @ORM\GeneratedValue(strategy="IDENTITY") |
||
57 | */ |
||
58 | private $id; |
||
59 | |||
60 | /** |
||
61 | * @var string|null |
||
62 | * |
||
63 | * @ORM\Column(name="page_name", type="string", length=255, nullable=true) |
||
64 | */ |
||
65 | private $name; |
||
66 | |||
67 | /** |
||
68 | * @var string |
||
69 | * |
||
70 | * @ORM\Column(name="url", type="string", length=255) |
||
71 | */ |
||
72 | private $url; |
||
73 | |||
74 | /** |
||
75 | * @var string|null |
||
76 | * |
||
77 | * @ORM\Column(name="file_name", type="string", length=255, nullable=true) |
||
78 | */ |
||
79 | private $file_name; |
||
80 | |||
81 | /** |
||
82 | * @var int |
||
83 | * |
||
84 | * @ORM\Column(name="edit_type", type="smallint", options={"unsigned":true,"default":1}) |
||
85 | */ |
||
86 | private $edit_type = 1; |
||
87 | |||
88 | /** |
||
89 | * @var string|null |
||
90 | * |
||
91 | * @ORM\Column(name="author", type="string", length=255, nullable=true) |
||
92 | */ |
||
93 | private $author; |
||
94 | |||
95 | /** |
||
96 | * @var string|null |
||
97 | * |
||
98 | * @ORM\Column(name="description", type="string", length=255, nullable=true) |
||
99 | */ |
||
100 | private $description; |
||
101 | |||
102 | /** |
||
103 | * @var string|null |
||
104 | * |
||
105 | * @ORM\Column(name="keyword", type="string", length=255, nullable=true) |
||
106 | */ |
||
107 | private $keyword; |
||
108 | |||
109 | /** |
||
110 | * @var \DateTime |
||
111 | * |
||
112 | * @ORM\Column(name="create_date", type="datetimetz") |
||
113 | */ |
||
114 | private $create_date; |
||
115 | |||
116 | /** |
||
117 | * @var \DateTime |
||
118 | * |
||
119 | * @ORM\Column(name="update_date", type="datetimetz") |
||
120 | */ |
||
121 | private $update_date; |
||
122 | |||
123 | /** |
||
124 | * @var string|null |
||
125 | * |
||
126 | * @ORM\Column(name="meta_robots", type="string", length=255, nullable=true) |
||
127 | */ |
||
128 | private $meta_robots; |
||
129 | |||
130 | /** |
||
131 | * @var string|null |
||
132 | * |
||
133 | * @ORM\Column(name="meta_tags", type="string", length=4000, nullable=true) |
||
134 | */ |
||
135 | private $meta_tags; |
||
136 | |||
137 | /** |
||
138 | * @var \Doctrine\Common\Collections\Collection |
||
139 | * |
||
140 | * @ORM\OneToMany(targetEntity="Eccube\Entity\PageLayout", mappedBy="Page", cascade={"persist","remove"}) |
||
141 | */ |
||
142 | private $PageLayouts; |
||
143 | |||
144 | /** |
||
145 | * @var \Eccube\Entity\Page |
||
146 | * |
||
147 | * @ORM\ManyToOne(targetEntity="Eccube\Entity\Page") |
||
148 | * @ORM\JoinColumns({ |
||
149 | * @ORM\JoinColumn(name="master_page_id", referencedColumnName="id") |
||
150 | * }) |
||
151 | */ |
||
152 | private $MasterPage; |
||
153 | |||
154 | /** |
||
155 | * Constructor |
||
156 | */ |
||
157 | public function __construct() |
||
161 | |||
162 | /** |
||
163 | * Set id |
||
164 | * |
||
165 | * @return Page |
||
166 | */ |
||
167 | public function setId($id) |
||
173 | |||
174 | /** |
||
175 | * Get id |
||
176 | * |
||
177 | * @return integer |
||
178 | */ |
||
179 | public function getId() |
||
183 | |||
184 | /** |
||
185 | * Set name. |
||
186 | * |
||
187 | * @param string|null $name |
||
188 | * |
||
189 | * @return Page |
||
190 | */ |
||
191 | public function setName($name = null) |
||
197 | |||
198 | /** |
||
199 | * Get name. |
||
200 | * |
||
201 | * @return string|null |
||
202 | */ |
||
203 | public function getName() |
||
207 | |||
208 | /** |
||
209 | * Set url. |
||
210 | * |
||
211 | * @param string $url |
||
212 | * |
||
213 | * @return Page |
||
214 | */ |
||
215 | public function setUrl($url) |
||
221 | |||
222 | /** |
||
223 | * Get url. |
||
224 | * |
||
225 | * @return string |
||
226 | */ |
||
227 | public function getUrl() |
||
231 | |||
232 | /** |
||
233 | * Set fileName. |
||
234 | * |
||
235 | * @param string|null $fileName |
||
236 | * |
||
237 | * @return Page |
||
238 | */ |
||
239 | public function setFileName($fileName = null) |
||
245 | |||
246 | /** |
||
247 | * Get fileName. |
||
248 | * |
||
249 | * @return string|null |
||
250 | */ |
||
251 | public function getFileName() |
||
255 | |||
256 | /** |
||
257 | * Set editType. |
||
258 | * |
||
259 | * @param int $editType |
||
260 | * |
||
261 | * @return Page |
||
262 | */ |
||
263 | public function setEditType($editType) |
||
269 | |||
270 | /** |
||
271 | * Get editType. |
||
272 | * |
||
273 | * @return int |
||
274 | */ |
||
275 | public function getEditType() |
||
279 | |||
280 | /** |
||
281 | * Set author. |
||
282 | * |
||
283 | * @param string|null $author |
||
284 | * |
||
285 | * @return Page |
||
286 | */ |
||
287 | public function setAuthor($author = null) |
||
293 | |||
294 | /** |
||
295 | * Get author. |
||
296 | * |
||
297 | * @return string|null |
||
298 | */ |
||
299 | public function getAuthor() |
||
303 | |||
304 | /** |
||
305 | * Set description. |
||
306 | * |
||
307 | * @param string|null $description |
||
308 | * |
||
309 | * @return Page |
||
310 | */ |
||
311 | public function setDescription($description = null) |
||
317 | |||
318 | /** |
||
319 | * Get description. |
||
320 | * |
||
321 | * @return string|null |
||
322 | */ |
||
323 | public function getDescription() |
||
327 | |||
328 | /** |
||
329 | * Set keyword. |
||
330 | * |
||
331 | * @param string|null $keyword |
||
332 | * |
||
333 | * @return Page |
||
334 | */ |
||
335 | public function setKeyword($keyword = null) |
||
341 | |||
342 | /** |
||
343 | * Get keyword. |
||
344 | * |
||
345 | * @return string|null |
||
346 | */ |
||
347 | public function getKeyword() |
||
351 | |||
352 | /** |
||
353 | * Set createDate. |
||
354 | * |
||
355 | * @param \DateTime $createDate |
||
356 | * |
||
357 | * @return Page |
||
358 | */ |
||
359 | public function setCreateDate($createDate) |
||
365 | |||
366 | /** |
||
367 | * Get createDate. |
||
368 | * |
||
369 | * @return \DateTime |
||
370 | */ |
||
371 | public function getCreateDate() |
||
375 | |||
376 | /** |
||
377 | * Set updateDate. |
||
378 | * |
||
379 | * @param \DateTime $updateDate |
||
380 | * |
||
381 | * @return Page |
||
382 | */ |
||
383 | public function setUpdateDate($updateDate) |
||
389 | |||
390 | /** |
||
391 | * Get updateDate. |
||
392 | * |
||
393 | * @return \DateTime |
||
394 | */ |
||
395 | public function getUpdateDate() |
||
399 | |||
400 | /** |
||
401 | * Set metaRobots. |
||
402 | * |
||
403 | * @param string|null $metaRobots |
||
404 | * |
||
405 | * @return Page |
||
406 | */ |
||
407 | public function setMetaRobots($metaRobots = null) |
||
413 | |||
414 | /** |
||
415 | * Get metaRobots. |
||
416 | * |
||
417 | * @return string|null |
||
418 | */ |
||
419 | public function getMetaRobots() |
||
423 | |||
424 | /** |
||
425 | * Set meta_tags |
||
426 | * |
||
427 | * @param string $metaTags |
||
428 | * |
||
429 | * @return Page |
||
430 | */ |
||
431 | public function setMetaTags($metaTags) |
||
437 | |||
438 | /** |
||
439 | * Get meta_tags |
||
440 | * |
||
441 | * @return string |
||
442 | */ |
||
443 | public function getMetaTags() |
||
447 | |||
448 | /** |
||
449 | * Get pageLayoutLayout. |
||
450 | * |
||
451 | * @return \Doctrine\Common\Collections\Collection |
||
452 | */ |
||
453 | public function getPageLayouts() |
||
457 | |||
458 | /** |
||
459 | * Add pageLayoutLayout |
||
460 | * |
||
461 | * @param \Eccube\Entity\PageLayout $PageLayout |
||
462 | * |
||
463 | * @return Page |
||
464 | */ |
||
465 | public function addPageLayout(\Eccube\Entity\PageLayout $PageLayout) |
||
471 | |||
472 | /** |
||
473 | * Remove pageLayoutLayout |
||
474 | * |
||
475 | * @param \Eccube\Entity\PageLayout $PageLayout |
||
476 | */ |
||
477 | public function removePageLayout(\Eccube\Entity\PageLayout $PageLayout) |
||
481 | |||
482 | /** |
||
483 | * Set MasterPage. |
||
484 | * |
||
485 | * @param \Eccube\Entity\Page|null $page |
||
486 | * |
||
487 | * @return Page |
||
488 | */ |
||
489 | public function setMasterPage(\Eccube\Entity\Page $page = null) |
||
495 | |||
496 | /** |
||
497 | * Get MasterPage. |
||
498 | * |
||
499 | * @return \Eccube\Entity\Page|null |
||
500 | */ |
||
501 | public function getMasterPage() |
||
505 | |||
506 | /** |
||
507 | * @param $layoutId |
||
508 | * |
||
509 | * @return null|int |
||
510 | */ |
||
511 | public function getSortNo($layoutId) |
||
524 | } |
||
525 | } |
||
526 |