/[A3C]/lib/A3C/Model/StrixInstance.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /lib/A3C/Model/StrixInstance.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch 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;

Legend:
Removed from v.190  
changed lines
  Added in v.191

  ViewVC Help
Powered by ViewVC 1.1.26