/** * Добавить строку в таблицу * @param array $data * @return int */ public function insert(array $data) { $id = $this->_db->insert($this->table, $data, $this->pkey); // if( $id == false ) { // throw new DB_Exeption("Error insert value"); // } return $id; }