Class Precheck

Class Precheck

Package: Precheck
Category: System
Located at Precheck/Precheck.inc.php

Methods summary

public __construct( CI_DB_query_builder $db, KeyValueCollection $settings )

Precheck constructor.

protected _checkSettings( KeyValueCollection $settings )

Verifies that the settings collection parameter contains all necessary entries.

protected _getConfigurationValues( void ) : KeyValueCollection

Loads the configuration from the database and returns it as collection.

protected _recursiveGlobSearch( string $pattern, integer $flags = 0 ) : array

Performs a recursive glob search.

protected _hasForeignModuleOrgamax( void ) : boolean

Determines if the foreign module Orgamax is installed.

protected _hasForeignModuleEstelcoPdfCatalog( void ) : boolean

Determines if the foreign module PDF Katalog (Estelco) is installed.

protected _hasForeignModuleJtlWawiConnector( void ) : boolean

Determines if the foreign module JTL Wawi Connector is installed.

protected _hasForeignModuleCatenoShopsync( void ) : boolean

Determines if the foreign module Cateno Shopsync is installed.

protected _hasForeignModuleOpenCart( void ) : boolean

Determines if the foreign module Open Cart (Offene Warenkörbe) is installed.

protected _hasForeignModuleIndivStyleBlog( void ) : boolean

Determines if the foreign module Blog (Indiv Style) is installed.

protected _hasForeignModuleIndivStyleFreeProducts( void ) : boolean

Determines if the foreign module Gratisartikel (Indiv Style) - Free products is installed.

protected _hasForeignModuleIndivStyleOpenCart( void ) : boolean

Determines if the foreign module Offene Warenkörbe (Indiv Style) - Open cart is installed.

public getShopUrl( void ) : string

Returns the shop's URL.

public getShopVersion( void ) : string

Returns the installed shop version.

public getServerAddress( void ) : string

Returns the server address.

public getServerOs( void ) : string

Returns the server's operating system.

public getPhpVersion( void ) : string

Returns the running PHP version number.

public getMysqlVersion( void ) : string

Returns the running MySQL version number.

public isCurlEnabled( void ) : boolean

Determines if cUrl is available on this platform.

public getActiveTemplate( void ) : string

Returns the name of the currently used template.

public getAdditionalTemplates( void ) : array

Returns an array of additional installed templates (template name).

public getUsermods( void ) : array

Returns an array of usermods found.

public isInstalledMobileCandy( void ) : boolean

Determines if the MobileCandy template is installed.

public getMobileCandyUsermods( void ) : array

Returns an array of MobileCandy usermods found.

public hasGlobalUsermodDir( void ) : boolean

Determines if there is a global usermod directory.

public getUserComponents( void ) : array

Returns an array of custom user components.

public getForeignPaymentModules( array $defaultModules ) : array

Returns an array of foreign installed payment modules.

public getForeignShippingModules( array $defaultModules ) : array

Returns an array of foreign installed shipping modules.

public getForeignOrderTotalModules( array $defaultModules ) : array

Returns an array of foreign installed order total modules.

public getForeignModules( void ) : array

Returns the installed foreign languages.

public getForeignLanguages( void ) : array

Returns the installed foreign languages.

public getDangerousTools( void ) : array

Returns an array with dangerous tools installed.

public isPhpVersionAboveMinimum( void ) : boolean

Determines if the installed PHP version is above the minimum version required. If true, the result is positive.

public isPhpVersionBelowMaximum( void ) : boolean

Determines if the installed PHP version is below the maximum version required. If true, the result is positive.

public isUsingWindowsOs( void ) : boolean

Determines if the server is running on windows operating system.

public isMySqlVersionAboveMinimum( void ) : boolean

Determines if the installed MySQL version is above the minimum version required. If true, the result is positive.

public isMySqlVersionBelowMaximum( void ) : boolean

Determines if the installed MySQL version is below the maximum version required. If true, the result is positive.

Properties summary

protected $minPhpVersion : string

Minimum PHP version required.

''
protected $maxPhpVersion : string

Maximum PHP version required.

''
protected $minMysqlVersion : string

Minimum MySQL version required.

''
protected $maxMysqlVersion : string

Minimum MySQL version required.

''
protected $dangerousToolsGlobs : array

Collection of globs to find dangerous tools like 'adminer' or 'dumper'.


		
protected $db : CI_DB_query_builder

Database query builder.


		
protected $settings : KeyValueCollection

Collection of variables used.


		
protected $configuration : KeyValueCollection

Found configuration values.


		
protected $shopVersion : string

Found shop version.

''
protected $defaultLanguages : array

Array of known languages (mostly the default installed ones).


		
protected $usermodGlobPattern : string

Glob search pattern for usermods.