Usunięcie zbędnych plików .DS_Store oraz plików tymczasowych w module empikmarketplace
This commit is contained in:
BIN
modules/empikmarketplace/.DS_Store
vendored
BIN
modules/empikmarketplace/.DS_Store
vendored
Binary file not shown.
Binary file not shown.
@@ -1,46 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Empik\Marketplace\Repository;
|
||||
|
||||
use Db;
|
||||
use DbQuery;
|
||||
use Empik\Marketplace\Utils\Utils;
|
||||
|
||||
class AttributeRepository
|
||||
{
|
||||
/** @var Db */
|
||||
protected $db;
|
||||
|
||||
/** @var int */
|
||||
protected $langId;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->db = Db::getInstance();
|
||||
$this->langId = Utils::getLangId();
|
||||
}
|
||||
|
||||
public function getAttributes($productId, $productAttributeId)
|
||||
{
|
||||
$sql = new DbQuery();
|
||||
$sql->select('al.name AS value, agl.public_name AS name');
|
||||
$sql->from('attribute_group', 'ag');
|
||||
$sql->leftJoin('attribute_group_lang', 'agl', 'agl.id_attribute_group = ag.id_attribute_group AND agl.id_lang = ' . (int)$this->langId);
|
||||
$sql->leftJoin('product_attribute', 'pa', 'pa.id_product = ' . (int)$productId . ' AND pa.id_product_attribute = ' . (int)$productAttributeId);
|
||||
$sql->leftJoin('product_attribute_combination', 'pac', 'pac.id_product_attribute = pa.id_product_attribute');
|
||||
$sql->leftJoin('attribute', 'a', 'a.id_attribute = pac.id_attribute AND ag.id_attribute_group = a.id_attribute_group');
|
||||
$sql->leftJoin('attribute_lang', 'al', 'al.id_attribute = a.id_attribute AND al.id_lang = ' . (int)$this->langId);
|
||||
$sql->orderBy('ag.id_attribute_group');
|
||||
|
||||
$result = $this->db->executeS($sql);
|
||||
|
||||
$resultGrouped = [];
|
||||
foreach ($result as $item) {
|
||||
if (!isset($resultGrouped[$item['name']]) || $item['value']) {
|
||||
$resultGrouped[$item['name']] = $item;
|
||||
}
|
||||
}
|
||||
|
||||
return (array)$resultGrouped;
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
c:\visual studio code\projekty\drmaterac.pl\modules\empikmarketplace\vendor\composer\installers\src\Composer\Installers\~syncthing~CakePHPInstaller.php.tmp
|
||||
@@ -1 +0,0 @@
|
||||
c:\visual studio code\projekty\drmaterac.pl\modules\empikmarketplace\vendor\symfony\config\Tests\Definition\~syncthing~MergeTest.php.tmp
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
c:\visual studio code\projekty\drmaterac.pl\modules\empikmarketplace\vendor\symfony\dependency-injection\Tests\Compiler\~syncthing~CheckDefinitionValidityPassTest.php.tmp
|
||||
Binary file not shown.
@@ -1,7 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype\OtherDir\Component2\Dir1;
|
||||
|
||||
class Service4
|
||||
{
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
|
||||
|
||||
use App\BarService;
|
||||
|
||||
return function (ContainerConfigurator $c) {
|
||||
$c->services()
|
||||
->set('bar', 'Class1')
|
||||
->set(BarService::class)
|
||||
->abstract(true)
|
||||
->lazy()
|
||||
->set('foo')
|
||||
->parent(BarService::class)
|
||||
->decorate('bar', 'b', 1)
|
||||
->args([ref('b')])
|
||||
->class('Class2')
|
||||
->file('file.php')
|
||||
->parent('bar')
|
||||
->parent(BarService::class)
|
||||
;
|
||||
};
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
c:\visual studio code\projekty\drmaterac.pl\modules\empikmarketplace\vendor\symfony\dependency-injection\Tests\Fixtures\xml\~syncthing~services_deprecated.xml.tmp
|
||||
BIN
modules/empikmarketplace/views/.DS_Store
vendored
BIN
modules/empikmarketplace/views/.DS_Store
vendored
Binary file not shown.
BIN
modules/empikmarketplace/views/templates/.DS_Store
vendored
BIN
modules/empikmarketplace/views/templates/.DS_Store
vendored
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user