annotate Lib/DOM.pm @ 31:d59526f6310e

Small fixes to Test framework (correct handlinf of the compilation errors in the test units) Imported and refactored SQL DB schema from the old project
author Sergey
date Mon, 09 Nov 2009 01:39:16 +0300
parents 03e58a454b20
children 16ada169ca75
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
1 package DOM;
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
2 require DOM::Site;
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
3 use Common;
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
4
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
5 my $GlobalSite;
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
6
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
7 sub Site {
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
8 my $self = shift;
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
9
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
10 $GlobalSite = construct DOM::Site if not $GlobalSite;
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
11 return $GlobalSite;
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
12 }
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
13
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
14 sub Cleanup {
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
15 $GlobalSite->Dispose if $GlobalSite;
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
16 undef $GlobalSite;
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
17 }
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
18
03e58a454b20 Создан репозитарий
Sergey
parents:
diff changeset
19 1;