original_string: private function loadLabels(): void
    {
      $tables = DataLayer::getLabelTables();
      foreach ($tables as $table)
      {
        $rows = DataLayer::getLabelsFromTable($table['table_name'], $table['id'], $table['label']);
        foreach ($rows as $row)
        {
          $this->labels[$row['label']] = $row['id'];
        }
      }
    }
code: private function loadLabels(): void
    {
      $tables = DataLayer::getLabelTables();
      foreach ($tables as $table)
      {
        $rows = DataLayer::getLabelsFromTable($table['table_name'], $table['id'], $table['label']);
        foreach ($rows as $row)
        {
          $this->labels[$row['label']] = $row['id'];
        }
      }
    }
code_tokens: private function loadLabels ( ) : void { $ tables = DataLayer :: getLabelTables ( ) ; foreach ( $ tables as $ table ) { $ rows = DataLayer :: getLabelsFromTable ( $ table [ 'table_name' ] , $ table [ 'id' ] , $ table [ 'label' ] ) ; foreach ( $ rows as $ row ) { $ this -> labels [ $ row [ 'label' ] ] = $ row [ 'id' ] ; } } }
docstring: Loads all primary key labels from the MySQL database.
docstring_tokens: Loads all primary key labels from the MySQL database .