public function create($template)
{
$object = array();
$object["display_title"] = $template->display_title;
$object["title"] = $template->title;
$object["tags"] = $template->tags;
$object["body"] = $template->body;
$template_id = $this->insert($object);
$ret = $this->getById($template_id);
return $ret;
}