![]() 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/cartforge.co/app/code/Mageplaza/Core/Block/Adminhtml/ |
<?php namespace Mageplaza\Core\Block\Adminhtml; use Magento\Framework\DataObject; /** * Class ProcessBar * @package Mageplaza\Core\Block\Adminhtml */ class ProcessBar extends \Magento\Framework\View\Element\Template { protected $_template = '/popup/progressbar.phtml'; /** * @var DataObject */ protected $dataProcess; /** * @param bool $isEnable * @param string $url * @param array $collection * * @return ProcessBar */ public function setProcessData(bool $isEnable, string $url, array $collection) { $data = [ 'isEnable' => $isEnable, 'url' => $url, 'collection' => $collection ]; $this->dataProcess = new DataObject($data); return $this; } /** * Get Data to process in Js * * @return DataObject */ public function getDataProcessBar() { return $this->dataProcess; } }