mirror of
https://github.com/friendica/friendica
synced 2025-04-25 15:50:10 +00:00
Replace "q" calls
This commit is contained in:
parent
be6057b056
commit
b2edb85588
5 changed files with 46 additions and 71 deletions
|
@ -844,4 +844,18 @@ class DBStructure
|
|||
|
||||
return $retval;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the columns of a table
|
||||
*
|
||||
* @param string $table Table name
|
||||
*
|
||||
* @return array An array of the table columns
|
||||
* @throws Exception
|
||||
*/
|
||||
public static function getColumns($table)
|
||||
{
|
||||
$r = DBA::p("SHOW COLUMNS FROM `" . $table . "`");
|
||||
return DBA::toArray($r);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue