Authorization-RBAC

 view release on metacpan or  search on metacpan

t/lib/Schema/RBAC/ResultSet/Page.pm  view on Meta::CPAN


=head1 METHODS

=head2 retrieve_pages_from_path

=cut

sub retrieve_pages_from_path {
  my ( $self, $path, $get_all_pages ) = @_;

  my $nodes = [ split m%/%, $path ];
  $$nodes[0] = '/';

  my $lasted_obj;
  my (@not_found, @all_pages);
  my $parent_id = 0; # page /
  foreach my $node ( @$nodes ) {
    my $page = $self->find({
                            name      => $node,
                            parent_id => $parent_id,
                           },



( run in 0.369 second using v1.01-cache-2.11-cpan-501a3233654 )