Gets platform.

@return \Zend\Db\Adapter\Platform\PlatformInterface
558519
public function getPlatform()
    {
        switch ($this->getDriver()) {
            case 'pdo_mysql':
                return new Platform\Mysql();
                break;

            case 'pdo_pgsql':
                return new Platform\Postgresql();
                break;

            case 'pdo_sqlite':
                return new Platform\Sqlite();
                break;

            case 'pdo_sqlsrv':
                return new Platform\SqlServer();
                break;

            default:

                throw new \Exception(sprintf('Unknown platform %s.', $this->getPlatform()));
                break;
        }
    }
586480
public function platform()
    {
        if (preg_match('/linux/i', $this->server['HTTP_USER_AGENT'])) {
            return 'linux';
        } elseif (preg_match('/macintosh|mac os x/i', $this->server['HTTP_USER_AGENT'])) {
            return 'mac';
        } elseif (preg_match('/windows|win32/i', $this->server['HTTP_USER_AGENT'])) {
            return 'windows';
        }
        return 'unknown';
    }
554915
public com.google.api.ads.admanager.axis.v201811.MobileApplicationPlatform getPlatform() {
        return platform;
    }
824104
public function getPlatform(string $platform) : Platform
    {
        if (!array_key_exists($platform, $this->platforms)) {
            throw new \OutOfBoundsException(
                'Platform "' . $platform . '" does not exist in data'
            );
        }

        return $this->platforms[$platform];
    }
165257
public static function &getPlatform($platform, $instance)
	{
		static $instances;
		if (!isset($instances)) {
			$instances = array();
		}

		$platform = ucfirst(strtolower($platform));

		//only create a new thread instance if it has not been created before
		if (!isset($instances[$platform][$instance])) {
			$name = static::getNameFromInstance($instance);

			static::pluginAutoLoad($name);

			$class = '\JFusion\Plugins\\' . $name . '\Platform\\' . $platform . '\\Platform';
			if (!class_exists($class)) {
				$class = '\JFusion\Plugin\Platform\\' . $platform;
			}
			if (!class_exists($class)) {
				$class = '\JFusion\Plugin\Platform';
			}
			$instances[$platform][$instance] = new $class($instance);
		}
		return $instances[$platform][$instance];
	}
436604
public function getTable()
    {
        if(!($this->_table instanceof KDatabaseTableInterface))
        {
            //Make sure we have a table identifier
            if(!($this->_table instanceof KObjectIdentifier)) {
                $this->setTable($this->_table);
            }

            $this->_table = $this->getObject($this->_table);
        }

        return $this->_table;
    }
766509
public function getPlatform()
    {
        if (null === $this->platform) {
            require_once dirname(__FILE__) . '/../platform/SqlitePlatform.php';
            $this->platform = new SqlitePlatform();
        }

        return $this->platform;
    }
34326
protected function getAdapter() : AdapterInterface
    {
        if ($this->adapter === null) {
            $databaseFile = $this->getTemporaryFileName();
            $adapter = AdapterFactory::getInstance($databaseFile);
            $this->setAdapter($adapter);
        }

        return $this->adapter;
    }
920281
public static function getPlatformType()
    {
        $container = self::getContainer();
        $builder = CollectionBuilder::create($container, false);

        return $container->get('projectXPlatform')
            ->setBuilder($builder);
    }
575869
public com.google.api.ads.adwords.axis.v201809.cm.Platform getPlatform() {
        return platform;
    }
1066910
public function getPlatformIdsByPlatformName($platformName)
	{
		$select = $this->tableGateway->getSql()->select();
		$select->columns(array('*'));
		$select->join('melis_core_platform', 'melis_core_platform.plf_id = melis_cms_platform_ids.pids_id',
				array('*'));
		$select->where("plf_name = '$platformName'");
		$resultSet = $this->tableGateway->selectWith($select);
		return $resultSet;
	}
909809
public function getSiteDomainPlatform()
    {
        $data = array();

        if($this->getRequest()->isGet()){
            $siteDomain = $this->getServiceLocator()->get('SiteDomain');

            $data = $siteDomain->getSiteDomain();
        }


        return $data;
    }
1045284
public function getIosType()
    {
        if ($this->platform !== Software::PLATFORM_IOS) {
            throw new \LogicException('Can\'t get type iOS in Mac software.');
        }

        if ($this->screenshotsIphone && $this->screenshotsIpad) {
            return Software::TYPE_IOS_UNIVERSAL;
        } else if ($this->screenshotsIphone) {
            return Software::TYPE_IOS_IPHONE;
        } else if ($this->screenshotsIpad) {
            return Software::TYPE_IOS_IPAD;
        } else {
            throw new \LogicException('Can\'t get type iOS. Undefined screenshots');
        }
    }
824209
public function getConsole()
    {
        if (!($this->console instanceof AdapterInterface)) {
            $this->console = Console::getInstance();
        }

        return $this->console;
    }
146013
public function getDriver()
    {
        $adapter = $this->getAdapter();

        if ($adapter) {
            return $adapter;
        }

        $engine = $this->dsn->engine;

        return 'Cake\Database\Driver\\' . ucfirst($engine);
    }
419618
public function getDb()
    {
        if (!$this->db) {
            $this->db = Bootstrap::getSingleton()->getDatabase();
        }
        return $this->db;
    }
157135
public function getDb()
    {
        if (!$this->db) {
            $this->db = $this->source;

            if (!$this->db instanceof AbstractDatabaseDriver) {
                $this->db = Ioc::getDatabase();
            }
        }

        return $this->db;
    }