original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Initialize cache with autoload settings.
  
  @return void
docstring_tokens: Initialize cache with autoload settings .