Help for this page

Select Code to Download


  1. or download this
      sub name { shift->field('name') }
      sub sub_cat_ids { @{shift->field('sub_cats') }
    
  2. or download this
      sub new_tree
      {
    ...
      }
    
      sub sub_cats { @{shift->{_sub_cats} }
    
  3. or download this
      sub as_hash
      {
    ...
          $self->as_hash,
          map { $_->as_flattened_list } $self->sub_cats
      }
    
  4. or download this
      sub BuildCatList
      {
    ...
        my $cats = &main::GetDB('cats');
        $cats->{'~cat_list'} = &main::nfreeze( \@cat_list );
      }