function &makeDB(&$row) { $in = @array('id' => $row['template_id'], 'name' => $row['name'], 'description' => $row['description'], 'body' => $row['body'], 'altbody' => $row['altbody']); $o = PommoAPI::getParams(PommoType::template(), $in); return $o; }