1
|
<?php
|
2
|
require "../model/DB.php";
|
3
|
require "../model/Tag.php";
|
4
|
require "../model/Word.php";
|
5
|
require "../model/Lemma.php";
|
6
|
$DB = new DB();
|
7
|
|
8
|
$id = 4;
|
9
|
|
10
|
$res = ["tag_id"=>1, "tag"=>"N-----------", "lemma_id"=>1, "lemma"=>"xxx", "pos"=>0, "id"=>4, "context"=>"", "date"=>"2015-06-08 00:00:00", "description"=>"",
|
11
|
"description2"=>"koho/co", "description3"=>"", "ending"=>"", "finished"=>true, "namedentity"=>0, "position1"=>"53", "position2"=>"38", "positiondetail"=>"",
|
12
|
"word"=>"abatyšeZměna2"];
|
13
|
|
14
|
$tag = new Tag($res["tag_id"], $res["tag"]);
|
15
|
$lemma = new Lemma($res["lemma_id"], $res["lemma"], $res["pos"]);
|
16
|
$word = new Word($res["id"], $res["context"], $res["date"], $res["description"], $res["description2"], $res["description3"], $res["ending"],
|
17
|
$res["finished"], $res["namedentity"], $res["position1"], $res["position2"], $res["positiondetail"], $res["word"], $lemma, $tag);
|
18
|
|
19
|
$DB->update();
|