| 1 | =head1 NAME | ||
| 2 | |||
| 3 | XAO::DO::FS::Global - root node of objects tree | ||
| 4 | |||
| 5 | =head1 SYNOPSIS | ||
| 6 | |||
| 7 | use XAO::Objects; | ||
| 8 | |||
| 9 | my $global=XAO::Objects->new(objname => 'FS::Global'); | ||
| 10 | $global->connect($dbh); | ||
| 11 | |||
| 12 | =head1 DESCRIPTION | ||
| 13 | |||
| 14 | FS::Global is a XAO dynamicaly overridable object that serves as | ||
| 15 | a root node in objects tree. It is not recommended to override it for | ||
| 16 | specific site unless you're positive there is no way to avoid that and | ||
| 17 | you know enough about object server internalities. | ||
| 18 | |||
| 19 | =cut | ||
| 20 | |||
| 21 | ############################################################################### | ||
| 22 | package XAO::DO::FS::Global; | ||
| 23 | use strict; | ||
| 24 | use XAO::Utils; | ||
| 25 | use XAO::Objects; | ||
| 26 | |||
| 27 | use base XAO::Objects->load(objname => 'FS::Hash'); | ||
| 28 | |||
| 29 | use vars qw($VERSION); | ||
| 30 | $VERSION=(0+sprintf('%u.%03u',(q$Id: Global.pm,v 2.1 2005/01/14 00:23:54 am Exp $ =~ /\s(\d+)\.(\d+)\s/))) || die "Bad VERSION"; | ||
| 31 | |||
| 32 | sub new ($%) { | ||
| 33 | my $class=shift; | ||
| 34 | my $self=$class->SUPER::new(@_); | ||
| 35 | $$self->{unique_id}=1; | ||
| 36 | $$self->{detached}=0; | ||
| 37 | $self; | ||
| 38 | } | ||
| 39 | |||
| 40 | ############################################################################### | ||
| 41 | 1; | ||
| 42 | __END__ |