ltsecurityinc安防产品在线商城代码

This commit is contained in:
2026-09-14 17:47:10 +08:00
parent 57d8444c15
commit 6a3c9c5bd8
14539 changed files with 1775310 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
<?php
namespace Olegnax\Athlete2\Block\Adminhtml;
use Magento\Backend\Block\Template;
use Magento\Backend\Block\Template\Context;
use Magento\Framework\App\Filesystem\DirectoryList;
use Magento\Framework\Filesystem;
class Import extends Template {
protected $_filesystem;
protected $_dir;
public function __construct( Context $context,
Filesystem $filesystem, array $data = []
) {
$this->_filesystem = $filesystem;
parent::__construct( $context, $data );
}
public function getWebsiteId() {
$storeModel = $this->_objectManager->create( 'Magento\Store\Model\Store' );
$store = $storeModel->load( $this->getRequest()->getParam( 'store' ) );
return $store->getWebsiteId();
}
public function getAbsolutePath( $path ) {
return $this->_filesystem->getDirectoryRead( DirectoryList::APP )->getAbsolutePath( $path );
}
}