mirror of
https://gitlab.com/hashborgir/d2tools.git
synced 2025-11-29 13:11:34 -06:00
Added D2Strings class to get strings where needed from strings table
This commit is contained in:
11
src/D2Strings.php
Normal file
11
src/D2Strings.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
class D2Strings {
|
||||
public array $strings;
|
||||
|
||||
public function __construct(){
|
||||
$sql = "SELECT * FROM strings";
|
||||
$this->strings = PDO_FetchAssoc($sql);
|
||||
return $this->strings;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user