public function createLibItem(LibItemDb $item) { check_condition($item->getIdent(), 'Не передан идентификатор создаваемой сущности'); return $this->insert('INSERT INTO ps_lib_item (ident, grup, name, content, dt_start, dt_stop, b_show) VALUES (?, ?, ?, ?, ?, ?, 0)', array($item->getIdent(), $item->getGroup(), $item->getName(), $item->getContent(), $item->getDtStart(), $item->getDtStop())); }