Parent Directory | Revision Log | Patch
revision 190 by dpavlin, Mon Jun 16 16:48:16 2008 UTC | revision 191 by dpavlin, Tue Jun 17 14:28:10 2008 UTC | |
---|---|---|
# | Line 58 sub since { '0.0.3' }; | Line 58 sub since { '0.0.3' }; |
58 | ||
59 | use A3C::DefaultACL; | use A3C::DefaultACL; |
60 | ||
61 | 1; | =head2 has_sites |
62 | ||
63 | my $collection = A3C::Model::StrixInstance->has_sites; | |
64 | ||
65 | =cut | |
66 | ||
67 | sub has_sites { | |
68 | my $self = shift; | |
69 | ||
70 | my $collection = A3C::Model::StrixSiteCollection->new; | |
71 | $collection->limit( column => 'instance', value => $self->instance ); | |
72 | Jifty->log->debug("Instance ", $self->instance, " has ", $collection->count, " sites"); | |
73 | return $collection; | |
74 | } | |
75 | ||
76 | 1; |
|
ViewVC Help | |
Powered by ViewVC 1.1.26 |