Precheck

Class Precheck

category

System

package

Precheck

Methods

Precheck constructor.

__construct(\CI_DB_query_builder $db, \KeyValueCollection $settings) 

Arguments

$db

\CI_DB_query_builder

Database query builder.

$settings

\KeyValueCollection

Settings key value collection (see #_checkSettings).

Verifies that the settings collection parameter contains all necessary entries.

_checkSettings(\KeyValueCollection $settings) 

Needed keys are:

  • shopVersion (Current shop version - coming from release info)
  • DIR_FS_CATALOG (Value from configure.php)
  • HTTP_SERVER (Value from configure.php)
  • DIR_WS_CATALOG (Value from configure.php)
protected
Throws
\InvalidArgumentException

On missing key.

Arguments

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

_getConfigurationValues() : \KeyValueCollection
protected

Response

\KeyValueCollection

Determines if the foreign module Cateno Shopsync is installed.

_hasForeignModuleCatenoShopsync() : boolean
protected

Response

boolean

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

_hasForeignModuleEstelcoPdfCatalog() : boolean
protected

Response

boolean

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

_hasForeignModuleIndivStyleBlog() : boolean
protected

Response

boolean

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

_hasForeignModuleIndivStyleFreeProducts() : boolean
protected

Response

boolean

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

_hasForeignModuleIndivStyleOpenCart() : boolean
protected

Response

boolean

Determines if the foreign module JTL Wawi Connector is installed.

_hasForeignModuleJtlWawiConnector() : boolean
protected

Response

boolean

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

_hasForeignModuleOpenCart() : boolean
protected

Response

boolean

Determines if the foreign module Orgamax is installed.

_hasForeignModuleOrgamax() : boolean
protected

Response

boolean

Performs a recursive glob search.

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

Arguments

$pattern

string

Glob search pattern.

$flags

integer

Glob search flags.

Response

array

Returns the name of the currently used template.

getActiveTemplate() : string

Response

string

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

getAdditionalTemplates() : array

Response

array

Returns an array with dangerous tools installed.

getDangerousTools() : array

Response

array

Returns the installed foreign languages.

getForeignLanguages() : array

Response

array

Returns the installed foreign languages.

getForeignModules() : array

Response

array

Returns an array of foreign installed order total modules.

getForeignOrderTotalModules(array $defaultModules) : array
Throws
\InvalidArgumentException

On empty array.

Arguments

$defaultModules

array

List of default order total modules (note, that a file path has to be relative to the order_total directory).

Response

array

Returns an array of foreign installed payment modules.

getForeignPaymentModules(array $defaultModules) : array
Throws
\InvalidArgumentException

On empty array.

Arguments

$defaultModules

array

List of default payment modules (note, that a file path has to be relative to the payment directory).

Response

array

Returns an array of foreign installed shipping modules.

getForeignShippingModules(array $defaultModules) : array
Throws
\InvalidArgumentException

On empty array.

Arguments

$defaultModules

array

List of default shipping modules (note, that a file path has to be relative to the shipping directory).

Response

array

Returns an array of MobileCandy usermods found.

getMobileCandyUsermods() : array

Response

array

Returns the running MySQL version number.

getMysqlVersion() : string

Response

string

Returns the running PHP version number.

getPhpVersion() : string

Response

string

Returns the server address.

getServerAddress() : string

Response

string

Returns the server's operating system.

getServerOs() : string

Response

string

Returns the shop's URL.

getShopUrl() : string

Response

string

Returns the installed shop version.

getShopVersion() : string

Response

string

Returns an array of custom user components.

getUserComponents() : array

Response

array

Returns an array of usermods found.

getUsermods() : array

Response

array

Determines if there is a global usermod directory.

hasGlobalUsermodDir() : boolean

Response

boolean

Determines if cUrl is available on this platform.

isCurlEnabled() : boolean

Response

boolean

Determines if the MobileCandy template is installed.

isInstalledMobileCandy() : boolean

Response

boolean

Determines if the installed MySQL version is above the minimum version required.

isMySqlVersionAboveMinimum() : boolean

If true, the result is positive.

Response

boolean

Determines if the installed MySQL version is below the maximum version required.

isMySqlVersionBelowMaximum() : boolean

If true, the result is positive.

Response

boolean

Determines if the installed PHP version is above the minimum version required.

isPhpVersionAboveMinimum() : boolean

If true, the result is positive.

Response

boolean

Determines if the installed PHP version is below the maximum version required.

isPhpVersionBelowMaximum() : boolean

If true, the result is positive.

Response

boolean

Determines if the server is running on windows operating system.

isUsingWindowsOs() : boolean

Response

boolean

Properties

Minimum PHP version required.

minPhpVersion : string
var

Type(s)

string

Maximum PHP version required.

maxPhpVersion : string
var

Type(s)

string

Minimum MySQL version required.

minMysqlVersion : string
var

Type(s)

string

Minimum MySQL version required.

maxMysqlVersion : string
var

Type(s)

string

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

dangerousToolsGlobs : array
var

Type(s)

array

Database query builder.

db : \CI_DB_query_builder
var

Type(s)

\CI_DB_query_builder

Collection of variables used.

settings : \KeyValueCollection
var

Type(s)

\KeyValueCollection

Found configuration values.

configuration : \KeyValueCollection
var

Type(s)

\KeyValueCollection

Found shop version.

shopVersion : string
var

Type(s)

string

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

defaultLanguages : array
var

Type(s)

array

Glob search pattern for usermods.

usermodGlobPattern : string
var

Type(s)

string