source:
trunk/prototype/links.php
@
5341
Revision 5341, 312 bytes checked in by wmerlotto, 12 years ago (diff) |
---|
Rev | Line | |
---|---|---|
[5341] | 1 | <?php |
2 | ||
3 | require_once 'app/controller.php'; | |
4 | ||
5 | $links = Controller::links( $_GET['concept'] ); | |
6 | ||
7 | $concepts = array(); | |
8 | ||
9 | foreach( $links as $linkName => $linkTarget ) | |
10 | if( Controller::isConcept( $linkName ) ) | |
11 | $concepts[ $linkName ] = true; | |
12 | ||
13 | echo json_encode( array( 'concepts' => $concepts, 'links' => $links ) ); |
Note: See TracBrowser
for help on using the repository browser.