original_string: protected function getColumnMappingsFromConfig($tableName) {
  
          $filename = "$tableName.conf";
          $configManager = new ConfigManager();
          $config = $configManager->getConfiguration($filename);
  
          if (is_null($config)) {
              $result = $this->dbConnection->query('SHOW COLUMNS FROM ' . $tableName);
  
              if (is_null($result)) {
  
                  throw new TableNotFoundException('table ' . $tableName . ' not found');
              }
  
              $columnNames = array();
              foreach ($result as $object => $values) {
                  //array_push($columnNames, array($values['Field'] => $values));
                  $columnNames[$values['Field']] = $values;
              }
  
              $config = new Config($columnNames);
  
              $configManager->saveConfiguration($filename, $config);
          }
  
          return $config->toArray();
      }
code: protected function getColumnMappingsFromConfig($tableName) {
  
          $filename = "$tableName.conf";
          $configManager = new ConfigManager();
          $config = $configManager->getConfiguration($filename);
  
          if (is_null($config)) {
              $result = $this->dbConnection->query('SHOW COLUMNS FROM ' . $tableName);
  
              if (is_null($result)) {
  
                  throw new TableNotFoundException('table ' . $tableName . ' not found');
              }
  
              $columnNames = array();
              foreach ($result as $object => $values) {
                  //array_push($columnNames, array($values['Field'] => $values));
                  $columnNames[$values['Field']] = $values;
              }
  
              $config = new Config($columnNames);
  
              $configManager->saveConfiguration($filename, $config);
          }
  
          return $config->toArray();
      }
code_tokens: protected function getColumnMappingsFromConfig ( $ tableName ) { $ filename = "$tableName.conf" ; $ configManager = new ConfigManager ( ) ; $ config = $ configManager -> getConfiguration ( $ filename ) ; if ( is_null ( $ config ) ) { $ result = $ this -> dbConnection -> query ( 'SHOW COLUMNS FROM ' . $ tableName ) ; if ( is_null ( $ result ) ) { throw new TableNotFoundException ( 'table ' . $ tableName . ' not found' ) ; } $ columnNames = array ( ) ; foreach ( $ result as $ object => $ values ) { //array_push($columnNames, array($values['Field'] => $values)); $ columnNames [ $ values [ 'Field' ] ] = $ values ; } $ config = new Config ( $ columnNames ) ; $ configManager -> saveConfiguration ( $ filename , $ config ) ; } return $ config -> toArray ( ) ; }
docstring: getColumnMappingsFromConfig retrieves serialized column list specific to a table
  
  @param string    tablename
  
  @return array    list of columns
docstring_tokens: getColumnMappingsFromConfig retrieves serialized column list specific to a table