|
Apache/2.4.41 (Ubuntu) Linux vmi616275.contaboserver.net 5.4.0-84-generic #94-Ubuntu SMP Thu Aug 26 20:27:37 UTC 2021 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) server ip : 62.171.164.128 | your ip : 127.0.0.1 safemode OFF > / home / a / home / dev2.destoffenstraat.com / app / code / Amasty / ExportPro / Api / |
Filename | /home/a/home/dev2.destoffenstraat.com/app/code/Amasty/ExportPro/Api/HistoryRepositoryInterface.php |
Size | 2.26 kb |
Permission | rw-r--r-- |
Owner | root : root |
Create time | 21-Aug-2025 12:26 |
Last modified | 14-Jun-2025 23:38 |
Last accessed | 22-Aug-2025 22:32 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
<?php
/**
* @author Amasty Team
* @copyright Copyright (c) Amasty (https://www.amasty.com)
* @package Export Pro for Magento 2 (System)
*/
namespace Amasty\ExportPro\Api;
/**
* @api
*/
interface HistoryRepositoryInterface
{
/**
* Save
*
* @param \Amasty\ExportPro\Api\Data\HistoryInterface $history
*
* @return \Amasty\ExportPro\Api\Data\HistoryInterface
*/
public function save(\Amasty\ExportPro\Api\Data\HistoryInterface $history);
/**
* Get by id
*
* @param int $id
*
* @return \Amasty\ExportPro\Api\Data\HistoryInterface
* @throws \Magento\Framework\Exception\NoSuchEntityException
*/
public function getById($id);
/**
* Delete
*
* @param \Amasty\ExportPro\Api\Data\HistoryInterface $exportHistory
*
* @return bool true on success
* @throws \Magento\Framework\Exception\CouldNotDeleteException
*/
public function delete(\Amasty\ExportPro\Api\Data\HistoryInterface $exportHistory);
/**
* Delete by id
*
* @param int $id
*
* @return bool true on success
* @throws \Magento\Framework\Exception\CouldNotDeleteException
*/
public function deleteById($id);
/**
* Clear history
* @param string $type
*
* @return bool true on success
* @throws \Exception
*/
public function clearHistory(string $type);
/**
* Get by identity
*
* @param string $identity
*
* @return \Amasty\ExportPro\Api\Data\HistoryInterface
*/
public function getByIdentity($identity);
/**
* @param string $type
* @param int $days
*
* @return void
*/
public function clearHistoryByDays(string $type, int $days);
/**
* @param string $type
* @param int $days
*
* @return void
*/
public function clearFilesByDays(string $type, int $days);
/**
* @param string $jobType
* @param int $days
*
* @return \Amasty\ExportPro\Model\History\ResourceModel\Collection
*/
public function getByDays(string $jobType, int $days);
/**
* @param string $jobType
*
* @return \Amasty\ExportPro\Model\History\ResourceModel\Collection
*/
public function getByJobType(string $jobType);
}
/**
* @author Amasty Team
* @copyright Copyright (c) Amasty (https://www.amasty.com)
* @package Export Pro for Magento 2 (System)
*/
namespace Amasty\ExportPro\Api;
/**
* @api
*/
interface HistoryRepositoryInterface
{
/**
* Save
*
* @param \Amasty\ExportPro\Api\Data\HistoryInterface $history
*
* @return \Amasty\ExportPro\Api\Data\HistoryInterface
*/
public function save(\Amasty\ExportPro\Api\Data\HistoryInterface $history);
/**
* Get by id
*
* @param int $id
*
* @return \Amasty\ExportPro\Api\Data\HistoryInterface
* @throws \Magento\Framework\Exception\NoSuchEntityException
*/
public function getById($id);
/**
* Delete
*
* @param \Amasty\ExportPro\Api\Data\HistoryInterface $exportHistory
*
* @return bool true on success
* @throws \Magento\Framework\Exception\CouldNotDeleteException
*/
public function delete(\Amasty\ExportPro\Api\Data\HistoryInterface $exportHistory);
/**
* Delete by id
*
* @param int $id
*
* @return bool true on success
* @throws \Magento\Framework\Exception\CouldNotDeleteException
*/
public function deleteById($id);
/**
* Clear history
* @param string $type
*
* @return bool true on success
* @throws \Exception
*/
public function clearHistory(string $type);
/**
* Get by identity
*
* @param string $identity
*
* @return \Amasty\ExportPro\Api\Data\HistoryInterface
*/
public function getByIdentity($identity);
/**
* @param string $type
* @param int $days
*
* @return void
*/
public function clearHistoryByDays(string $type, int $days);
/**
* @param string $type
* @param int $days
*
* @return void
*/
public function clearFilesByDays(string $type, int $days);
/**
* @param string $jobType
* @param int $days
*
* @return \Amasty\ExportPro\Model\History\ResourceModel\Collection
*/
public function getByDays(string $jobType, int $days);
/**
* @param string $jobType
*
* @return \Amasty\ExportPro\Model\History\ResourceModel\Collection
*/
public function getByJobType(string $jobType);
}