printImage to superclass

This commit is contained in:
lopar 2019-01-11 21:39:37 +02:00
parent 6c7f997257
commit 863a7a453a
2 changed files with 5 additions and 4 deletions

View File

@ -127,4 +127,9 @@ abstract class Item
$this->mfuvorot = $row['mfuvorot']; $this->mfuvorot = $row['mfuvorot'];
$this->mfauvorot = $row['mfauvorot']; $this->mfauvorot = $row['mfauvorot'];
} }
public function printImage()
{
echo "<img src='/i/sh/{$this->img}'";
}
} }

View File

@ -47,8 +47,4 @@ class ItemClass extends Item
echo "<br>"; echo "<br>";
} }
public function printImage()
{
echo "<img src='/i/sh/{$this->img}'";
}
} }