Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/old/app/code/Soon/Faq/Controller/Adminhtml/Action/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //home/corals/old/app/code/Soon/Faq/Controller/Adminhtml/Action/ActionAbstract.php
<?php
/**
 * @license http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
 * @author Hervé Guétin <[email protected]> <@herveguetin>
 * @copyright Copyright (c) 2016 Agence Soon (http://www.agence-soon.fr)
 */

namespace Soon\Faq\Controller\Adminhtml\Action;


use Magento\Backend\App\Action;
use Magento\Backend\App\Action\Context;
use Magento\Backend\Model\View\Result\ForwardFactory;
use Magento\Framework\App\Request\DataPersistorInterface;
use Magento\Framework\App\ResponseInterface;
use Magento\Framework\Controller\Result\RedirectFactory;
use Magento\Framework\Model\AbstractModel;
use Magento\Framework\View\Result\PageFactory;

abstract class ActionAbstract extends Action implements ActionInterface
{

    /**
     * @var AbstractModel
     */
    private $model;
    /**
     * @var string
     */
    private $dataPersistorKey;
    /**
     * @var RedirectFactory
     */
    private $redirectFactory;
    /**
     * @var DataPersistorInterface
     */
    private $dataPersistor;
    /**
     * @var PageFactory
     */
    private $pageFactory;
    /**
     * @var ForwardFactory
     */
    private $forwardFactory;
    /**
     * @var string
     */
    private $adminMenuPath;
    /**
     * @var string
     */
    private $titleLabel;

    public function __construct(
        Context $context,
        RedirectFactory $redirectFactory,
        ForwardFactory $forwardFactory,
        DataPersistorInterface $dataPersistor,
        PageFactory $pageFactory
    )
    {
        parent::__construct($context);
        $this->redirectFactory = $redirectFactory;
        $this->forwardFactory = $forwardFactory;
        $this->dataPersistor = $dataPersistor;
        $this->pageFactory = $pageFactory;
    }

    /**
     * Dispatch request
     *
     * @return \Magento\Framework\Controller\ResultInterface|ResponseInterface
     * @throws \Magento\Framework\Exception\NotFoundException
     */
    abstract public function execute();

    /**
     * @return AbstractModel
     */
    public function getModel()
    {
        return $this->model;
    }

    /**
     * @param AbstractModel $model
     */
    public function setModel(AbstractModel $model)
    {
        $this->model = $model;
    }

    /**
     * @return string
     */
    public function getDataPersistorKey()
    {
        return $this->dataPersistorKey;
    }

    /**
     * @param string $dataPersistorKey
     */
    public function setDataPersistorKey($dataPersistorKey)
    {
        $this->dataPersistorKey = $dataPersistorKey;
    }

    /**
     * @return RedirectFactory
     */
    public function getRedirectFactory()
    {
        return $this->redirectFactory;
    }

    /**
     * @return DataPersistorInterface
     */
    public function getDataPersistor()
    {
        return $this->dataPersistor;
    }

    /**
     * @return PageFactory
     */
    public function getPageFactory()
    {
        return $this->pageFactory;
    }

    /**
     * @return string
     */
    public function getAdminMenuPath()
    {
        return $this->adminMenuPath;
    }

    /**
     * @param string $adminMenuPath
     */
    public function setAdminMenuPath($adminMenuPath)
    {
        $this->adminMenuPath = $adminMenuPath;
    }

    /**
     * @return string
     */
    public function getTitleLabel()
    {
        return $this->titleLabel;
    }

    /**
     * @param string $titleLabel
     */
    public function setTitleLabel($titleLabel)
    {
        $this->titleLabel = $titleLabel;
    }

    /**
     * @return ForwardFactory
     */
    public function getForwardFactory()
    {
        return $this->forwardFactory;
    }
}

Spamworldpro Mini