Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Ship {
- function __construct( $id ){
- $theShip = Database::SingleQuery( "SELECT * FROM ships WHERE id = %1", $id );
- foreach ($theShip as $key => $value) {
- $this->$key = $value;
- }
- }
- public function getSystem(){
- return $this->system;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment