Skip to content

Latest commit

 

History

History
436 lines (198 loc) · 7.57 KB

class.ContextCore.md

File metadata and controls

436 lines (198 loc) · 7.57 KB

Class ContextCore

Contents

Constants

Properties

Methods

Constants

DEVICE_COMPUTER

const DEVICE_COMPUTER = 1

DEVICE_MOBILE

const DEVICE_MOBILE = 4

DEVICE_TABLET

const DEVICE_TABLET = 2

Properties

$cart

public \Cart $cart

$controller

public \Controller $controller

$cookie

public \Cookie $cookie

$country

public \Country $country

$currency

public \Currency $currency

$customer

public \Customer $customer

$employee

public \Employee $employee

$instance

protected \Context $instance

$language

public \Language $language

$link

public \Link $link

$mobile_detect

public mixed $mobile_detect

$mobile_device

protected boolean $mobile_device = null

$override_controller_name_for_translations

public string $override_controller_name_for_translations

$shop

public \Shop $shop

$smarty

public \Smarty $smarty

$tab

public \AdminTab $tab

$theme

public \Theme $theme

Methods

checkMobileContext

mixed ContextCore::checkMobileContext()

cloneContext

\Context ContextCore::cloneContext()

Clone current context

getContext

\Context ContextCore::getContext()

Get a singleton context

getDevice

mixed ContextCore::getDevice()

getMobileDetect

mixed ContextCore::getMobileDetect()

getMobileDevice

mixed ContextCore::getMobileDevice()