protected function autoload()
    {
        if ($this->loaded) {
            return;
        }

        $table = Common::prefixTable('option');
        $sql   = 'SELECT option_value, option_name FROM `' . $table . '` WHERE autoload = 1';
        $all   = Db::fetchAll($sql);

        foreach ($all as $option) {
            $this->all[$option['option_name']] = $option['option_value'];
        }

        $this->loaded = true;
    }
protected function autoload()
    {
        if ($this->loaded) {
            return;
        }

        $table = Common::prefixTable('option');
        $sql   = 'SELECT option_value, option_name FROM `' . $table . '` WHERE autoload = 1';
        $all   = Db::fetchAll($sql);

        foreach ($all as $option) {
            $this->all[$option['option_name']] = $option['option_value'];
        }

        $this->loaded = true;
    }
protected function autoload ( ) { if ( $ this -> loaded ) { return ; } $ table = Common :: prefixTable ( 'option' ) ; $ sql = 'SELECT option_value, option_name FROM `' . $ table . '` WHERE autoload = 1' ; $ all = Db :: fetchAll ( $ sql ) ; foreach ( $ all as $ option ) { $ this -> all [ $ option [ 'option_name' ] ] = $ option [ 'option_value' ] ; } $ this -> loaded = true ; }
Initialize cache with autoload settings.

@return void
Initialize cache with autoload settings .