A1_Core::__construct PHP Метод

__construct() защищенный Метод

Loads Session and configuration options.
protected __construct ( $_name = 'a1', $_config ) : void
Результат void
    protected function __construct($_name = 'a1', $_config)
    {
        $this->_name = $_name;
        $this->_config = $_config;
        if (isset($this->_config['cookie'])) {
            if (!isset($this->_config['cookie']['key'])) {
                $this->_config['cookie']['key'] = 'a1_{name}_autologin';
            }
            $this->_config['cookie']['key'] = strtr($this->_config['cookie']['key'], array('{name}' => $this->_name));
        }
        if (!isset($this->_config['session']['key'])) {
            $this->_config['session']['key'] = 'a1_' . $this->_name;
        }
    }