123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Cms\Api\Data;
- /**
- * CMS page interface.
- * @api
- * @since 100.0.2
- */
- interface PageInterface
- {
- /**#@+
- * Constants for keys of data array. Identical to the name of the getter in snake case
- */
- const PAGE_ID = 'page_id';
- const IDENTIFIER = 'identifier';
- const TITLE = 'title';
- const PAGE_LAYOUT = 'page_layout';
- const META_TITLE = 'meta_title';
- const META_KEYWORDS = 'meta_keywords';
- const META_DESCRIPTION = 'meta_description';
- const CONTENT_HEADING = 'content_heading';
- const CONTENT = 'content';
- const CREATION_TIME = 'creation_time';
- const UPDATE_TIME = 'update_time';
- const SORT_ORDER = 'sort_order';
- const LAYOUT_UPDATE_XML = 'layout_update_xml';
- const CUSTOM_THEME = 'custom_theme';
- const CUSTOM_ROOT_TEMPLATE = 'custom_root_template';
- const CUSTOM_LAYOUT_UPDATE_XML = 'custom_layout_update_xml';
- const CUSTOM_THEME_FROM = 'custom_theme_from';
- const CUSTOM_THEME_TO = 'custom_theme_to';
- const IS_ACTIVE = 'is_active';
- /**#@-*/
- /**
- * Get ID
- *
- * @return int|null
- */
- public function getId();
- /**
- * Get identifier
- *
- * @return string
- */
- public function getIdentifier();
- /**
- * Get title
- *
- * @return string|null
- */
- public function getTitle();
- /**
- * Get page layout
- *
- * @return string|null
- */
- public function getPageLayout();
- /**
- * Get meta title
- *
- * @return string|null
- * @since 101.0.0
- */
- public function getMetaTitle();
- /**
- * Get meta keywords
- *
- * @return string|null
- */
- public function getMetaKeywords();
- /**
- * Get meta description
- *
- * @return string|null
- */
- public function getMetaDescription();
- /**
- * Get content heading
- *
- * @return string|null
- */
- public function getContentHeading();
- /**
- * Get content
- *
- * @return string|null
- */
- public function getContent();
- /**
- * Get creation time
- *
- * @return string|null
- */
- public function getCreationTime();
- /**
- * Get update time
- *
- * @return string|null
- */
- public function getUpdateTime();
- /**
- * Get sort order
- *
- * @return string|null
- */
- public function getSortOrder();
- /**
- * Get layout update xml
- *
- * @return string|null
- */
- public function getLayoutUpdateXml();
- /**
- * Get custom theme
- *
- * @return string|null
- */
- public function getCustomTheme();
- /**
- * Get custom root template
- *
- * @return string|null
- */
- public function getCustomRootTemplate();
- /**
- * Get custom layout update xml
- *
- * @return string|null
- */
- public function getCustomLayoutUpdateXml();
- /**
- * Get custom theme from
- *
- * @return string|null
- */
- public function getCustomThemeFrom();
- /**
- * Get custom theme to
- *
- * @return string|null
- */
- public function getCustomThemeTo();
- /**
- * Is active
- *
- * @return bool|null
- */
- public function isActive();
- /**
- * Set ID
- *
- * @param int $id
- * @return \Magento\Cms\Api\Data\PageInterface
- */
- public function setId($id);
- /**
- * Set identifier
- *
- * @param string $identifier
- * @return \Magento\Cms\Api\Data\PageInterface
- */
- public function setIdentifier($identifier);
- /**
- * Set title
- *
- * @param string $title
- * @return \Magento\Cms\Api\Data\PageInterface
- */
- public function setTitle($title);
- /**
- * Set page layout
- *
- * @param string $pageLayout
- * @return \Magento\Cms\Api\Data\PageInterface
- */
- public function setPageLayout($pageLayout);
- /**
- * Set meta title
- *
- * @param string $metaTitle
- * @return \Magento\Cms\Api\Data\PageInterface
- * @since 101.0.0
- */
- public function setMetaTitle($metaTitle);
- /**
- * Set meta keywords
- *
- * @param string $metaKeywords
- * @return \Magento\Cms\Api\Data\PageInterface
- */
- public function setMetaKeywords($metaKeywords);
- /**
- * Set meta description
- *
- * @param string $metaDescription
- * @return \Magento\Cms\Api\Data\PageInterface
- */
- public function setMetaDescription($metaDescription);
- /**
- * Set content heading
- *
- * @param string $contentHeading
- * @return \Magento\Cms\Api\Data\PageInterface
- */
- public function setContentHeading($contentHeading);
- /**
- * Set content
- *
- * @param string $content
- * @return \Magento\Cms\Api\Data\PageInterface
- */
- public function setContent($content);
- /**
- * Set creation time
- *
- * @param string $creationTime
- * @return \Magento\Cms\Api\Data\PageInterface
- */
- public function setCreationTime($creationTime);
- /**
- * Set update time
- *
- * @param string $updateTime
- * @return \Magento\Cms\Api\Data\PageInterface
- */
- public function setUpdateTime($updateTime);
- /**
- * Set sort order
- *
- * @param string $sortOrder
- * @return \Magento\Cms\Api\Data\PageInterface
- */
- public function setSortOrder($sortOrder);
- /**
- * Set layout update xml
- *
- * @param string $layoutUpdateXml
- * @return \Magento\Cms\Api\Data\PageInterface
- */
- public function setLayoutUpdateXml($layoutUpdateXml);
- /**
- * Set custom theme
- *
- * @param string $customTheme
- * @return \Magento\Cms\Api\Data\PageInterface
- */
- public function setCustomTheme($customTheme);
- /**
- * Set custom root template
- *
- * @param string $customRootTemplate
- * @return \Magento\Cms\Api\Data\PageInterface
- */
- public function setCustomRootTemplate($customRootTemplate);
- /**
- * Set custom layout update xml
- *
- * @param string $customLayoutUpdateXml
- * @return \Magento\Cms\Api\Data\PageInterface
- */
- public function setCustomLayoutUpdateXml($customLayoutUpdateXml);
- /**
- * Set custom theme from
- *
- * @param string $customThemeFrom
- * @return \Magento\Cms\Api\Data\PageInterface
- */
- public function setCustomThemeFrom($customThemeFrom);
- /**
- * Set custom theme to
- *
- * @param string $customThemeTo
- * @return \Magento\Cms\Api\Data\PageInterface
- */
- public function setCustomThemeTo($customThemeTo);
- /**
- * Set is active
- *
- * @param int|bool $isActive
- * @return \Magento\Cms\Api\Data\PageInterface
- */
- public function setIsActive($isActive);
- }
|