/[Frey]/trunk/lib/Frey/ClassBrowser.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 /trunk/lib/Frey/ClassBrowser.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 407 by dpavlin, Wed Nov 5 20:18:33 2008 UTC revision 408 by dpavlin, Tue Nov 18 12:55:32 2008 UTC
# Line 20  sub markup { Line 20  sub markup {
20                                  $html .= qq|<a href="/Frey-ObjectDesigner?class=$class">design</a>| if $class->can('collection');                                  $html .= qq|<a href="/Frey-ObjectDesigner?class=$class">design</a>| if $class->can('collection');
21                          }                          }
22                  }                  }
23                  my @inspect;                  my @run;
24                  push @inspect, qq|<a href="/Frey-ObjectBrowser?class=$class">collection</a>| if $class->can('collection_table');                  my @input;
25                    push @run, qq|<a href="/Frey-ObjectBrowser?class=$class">collection</a>| if $class->can('collection_table');
26                    my @methods = $self->class_methods( $class );
27                  foreach my $try ( Frey::Run->runnable ) {                  foreach my $try ( Frey::Run->runnable ) {
28                          push @inspect, qq|<a href="/$class/$try">$try</a>| if $class->can($try);                          next unless $class->can($try);
29                            if ( grep { /^\Q$try\E$/ } @methods ) {
30                                    push @run, qq|<a href="/$class/$try">$try</a>|;
31                            } else {
32                                    push @input, $try;
33                            }
34                  }                  }
35                  $html .= qq|</td><td>| . join('&nbsp;', @inspect) . qq|</td></tr>|;                  $html .= qq|</td><td>| . join(' ', @run) . qq|</td><td>| .
36                            ( @input ? '&larr; ' . join(' ', @input) : '' ) .
37                            qq|</td></tr>|;
38          }          }
39          $html = "<table>$html</table>" if $html;          $html = "<table>$html</table>" if $html;
40          $markup = $html;          $markup = $html;

Legend:
Removed from v.407  
changed lines
  Added in v.408

  ViewVC Help
Powered by ViewVC 1.1.26