printImage to superclass
This commit is contained in:
@@ -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}'";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -47,8 +47,4 @@ class ItemClass extends Item
|
|||||||
echo "<br>";
|
echo "<br>";
|
||||||
}
|
}
|
||||||
|
|
||||||
public function printImage()
|
|
||||||
{
|
|
||||||
echo "<img src='/i/sh/{$this->img}'";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user