Пример #1
0
 /**
  * Gets all primary key labels from the MySQL database.
  */
 private function getLabels()
 {
     $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'];
         }
     }
 }