Basket::__construct PHP Method

__construct() public method

Instantiate class
public __construct ( $key = 'basket' ) : void
$key string
return void
    function __construct($key = 'basket')
    {
        $this->key = $key;
        if (session_status() != PHP_SESSION_ACTIVE) {
            session_start();
        }
        Base::instance()->sync('SESSION');
        $this->reset();
    }

Usage Example

Example #1
0
 public function __construct($company = '')
 {
     parent::__construct();
 }