public function getById($id)
{
$item = $this->db->fetchRow("SELECT * FROM tmp_store WHERE id = ?", $id);
if (is_array($item) && array_key_exists("id", $item)) {
if ($item["serialized"]) {
$item["data"] = unserialize($item["data"]);
}
$this->assignVariablesToModel($item);
return true;
}
return false;
}