• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

aimeos / aimeos-core / b9a6d8a0-e971-4dc5-869c-e0a333e1ba3c

12 May 2024 01:59PM UTC coverage: 91.701%. Remained the same
b9a6d8a0-e971-4dc5-869c-e0a333e1ba3c

push

circleci

aimeos
Added order demo data

11127 of 12134 relevant lines covered (91.7%)

52.66 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

11.11
/src/MShop/Index/Manager/PgSQL.php
1
<?php
2

3
/**
4
 * @license LGPLv3, https://opensource.org/licenses/LGPL-3.0
5
 * @copyright Aimeos (aimeos.org), 2020-2024
6
 * @package MShop
7
 * @subpackage Index
8
 */
9

10

11
namespace Aimeos\MShop\Index\Manager;
12

13

14
/**
15
 * MySQL index index manager for searching in product tables.
16
 *
17
 * @package MShop
18
 * @subpackage Index
19
 */
20
class PgSQL
21
        extends \Aimeos\MShop\Index\Manager\Standard
22
        implements \Aimeos\MShop\Index\Manager\Iface, \Aimeos\MShop\Common\Manager\Factory\Iface
23
{
24
        private ?array $subManagers = null;
25

26

27
        /**
28
         * Returns a new manager for product extensions.
29
         *
30
         * @param string $manager Name of the sub manager type in lower case
31
         * @param string|null $name Name of the implementation, will be from configuration (or Default) if null
32
         * @return \Aimeos\MShop\Common\Manager\Iface Manager for different extensions, e.g stock, tags, locations, etc.
33
         */
34
        public function getSubManager( string $manager, string $name = null ) : \Aimeos\MShop\Common\Manager\Iface
35
        {
36
                return $this->getSubManagerBase( 'index', $manager, $name ?: 'PgSQL' );
1✔
37
        }
38

39

40
        /**
41
         * Returns the list of sub-managers available for the index attribute manager.
42
         *
43
         * @return \Aimeos\MShop\Index\Manager\Iface[] Associative list of the sub-domain as key and the manager object as value
44
         */
45
        protected function getSubManagers() : array
46
        {
47
                if( $this->subManagers === null )
×
48
                {
49
                        $this->subManagers = [];
×
50
                        $config = $this->context()->config();
×
51

52
                        foreach( $config->get( 'mshop/index/manager/submanagers', [] ) as $domain )
×
53
                        {
54
                                $name = $config->get( 'mshop/index/manager/' . $domain . '/name' );
×
55
                                $this->subManagers[$domain] = $this->object()->getSubManager( $domain, $name ?: 'PgSQL' );
×
56
                        }
57

58
                        return $this->subManagers;
×
59
                }
60

61
                return $this->subManagers;
×
62
        }
63
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc