Advertisement
Guest User

Untitled

a guest
Apr 13th, 2018
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.73 KB | None | 0 0
  1. <?php
  2. /**
  3.  * Copyright © 2015 Magento. All rights reserved.
  4.  * See COPYING.txt for license details.
  5.  */
  6. namespace Rokanthemes\SlideBanner\Api;
  7.  
  8. use Magento\Framework\Api\SearchCriteriaInterface;
  9.  
  10. /**
  11.  * CMS page CRUD interface.
  12.  * @api
  13.  */
  14. interface SlideRepositoryInterface
  15. {
  16.     /**
  17.      * Save page.
  18.      *
  19.      * @param \Magento\Cms\Api\Data\PageInterface $page
  20.      * @return \Magento\Cms\Api\Data\PageInterface
  21.      * @throws \Magento\Framework\Exception\LocalizedException
  22.      */
  23.     public function save(\Magento\Cms\Api\Data\PageInterface $page);
  24.  
  25.     /**
  26.      * Retrieve page.
  27.      *
  28.      * @param int $pageId
  29.      * @return \Magento\Cms\Api\Data\PageInterface
  30.      * @throws \Magento\Framework\Exception\LocalizedException
  31.      */
  32.     public function getById($pageId);
  33.  
  34.     /**
  35.      * Retrieve pages matching the specified criteria.
  36.      *
  37.      * @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
  38.      * @return \Magento\Cms\Api\Data\PageSearchResultsInterface
  39.      * @throws \Magento\Framework\Exception\LocalizedException
  40.      */
  41.     public function getList(\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria);
  42.  
  43.     /**
  44.      * Delete page.
  45.      *
  46.      * @param \Magento\Cms\Api\Data\PageInterface $page
  47.      * @return bool true on success
  48.      * @throws \Magento\Framework\Exception\LocalizedException
  49.      */
  50.     public function delete(\Magento\Cms\Api\Data\PageInterface $page);
  51.  
  52.     /**
  53.      * Delete page by ID.
  54.      *
  55.      * @param int $pageId
  56.      * @return bool true on success
  57.      * @throws \Magento\Framework\Exception\NoSuchEntityException
  58.      * @throws \Magento\Framework\Exception\LocalizedException
  59.      */
  60.     public function deleteById($pageId);
  61. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement