Lines Matching refs:tree

61         $tree                  = $tree_service->create('name', 'title');
63 self::assertSame('name', $tree->name());
64 self::assertSame('title', $tree->title());
71 $tree = $tree_service->create('name', 'title');
73 $tree->setPreference('foo', 'bar');
74 $pref = $tree->getPreference('foo');
83 $tree = $tree_service->create('name', 'title');
86 $pref = $tree->getUserPreference($user, 'foo', 'default');
89 $tree->setUserPreference($user, 'foo', 'bar');
90 $pref = $tree->getUserPreference($user, 'foo', 'default');
101 $tree = $tree_service->create('name', 'title');
106 $tree->createIndividual("0 @@ FOO\n1 SEX U");
114 $tree = $tree_service->create('name', 'title');
119 $record = $tree->createIndividual("0 @@ INDI\n1 SEX F\n1 NAME Foo /Bar/");
123 $record = $tree->createIndividual("0 @@ INDI\n1 SEX F\n1 NAME Foo /Bar/");
134 $tree = $tree_service->create('name', 'title');
139 $tree->createFamily("0 @@ FOO\n1 MARR Y");
147 $tree = $tree_service->create('name', 'title');
152 $record = $tree->createFamily("0 @@ FAM\n1 MARR Y");
156 $record = $tree->createFamily("0 @@ FAM\n1 MARR Y");
167 $tree = $tree_service->create('name', 'title');
172 $tree->createMediaObject("0 @@ FOO\n1 MARR Y");
180 $tree = $tree_service->create('name', 'title');
185 $record = $tree->createMediaObject("0 @@ OBJE\n1 FILE foo.jpeg");
189 $record = $tree->createMediaObject("0 @@ OBJE\n1 FILE foo.jpeg");
200 $tree = $tree_service->create('name', 'title');
205 $tree->createRecord("0 @@FOO\n1 NOTE noted");
213 $tree = $tree_service->create('name', 'title');
218 $record = $tree->createRecord("0 @@ FOO\n1 NOTE noted");
222 $record = $tree->createRecord("0 @@ FOO\n1 NOTE noted");
231 $tree = $tree_service->create('name', 'title');
237 $gedcom_import_service->updateRecord('0 @X1@ INDI', $tree, true);
240 self::assertSame('I', $tree->significantIndividual($user)->xref());
242 $record1 = $tree->createIndividual("0 @@ INDI\n1 SEX F\n1 NAME Foo /Bar/");
243 $record2 = $tree->createIndividual("0 @@ INDI\n1 SEX F\n1 NAME Foo /Bar/");
244 $record3 = $tree->createIndividual("0 @@ INDI\n1 SEX F\n1 NAME Foo /Bar/");
245 $record4 = $tree->createIndividual("0 @@ INDI\n1 SEX F\n1 NAME Foo /Bar/");
248 self::assertSame($record1->xref(), $tree->significantIndividual($user)->xref());
251 $tree->setPreference('PEDIGREE_ROOT_ID', $record2->xref());
252 self::assertSame($record2->xref(), $tree->significantIndividual($user)->xref());
255 $tree->setUserPreference($user, UserInterface::PREF_TREE_ACCOUNT_XREF, $record3->xref());
256 self::assertSame($record3->xref(), $tree->significantIndividual($user)->xref());
259 $tree->setUserPreference($user, UserInterface::PREF_TREE_DEFAULT_XREF, $record4->xref());
260 self::assertSame($record4->xref(), $tree->significantIndividual($user)->xref());
267 $tree = $this->importTree('demo.ged');
269 Site::setPreference('DEFAULT_GEDCOM', $tree->name());
271 $tree_service->delete($tree);
280 $tree = $this->importTree('demo.ged');
286 $tree->createIndividual("0 @@ INDI\n1 SEX F\n1 NAME Foo /Bar/");
287 self::assertFalse($tree->hasPendingEdit());
290 $tree->createIndividual("0 @@ INDI\n1 SEX F\n1 NAME Foo /Bar/");
291 self::assertTrue($tree->hasPendingEdit());
296 $tree = $this->importTree('demo.ged');
300 $resource = $gedcom_export_service->export($tree, true);