Subversion Repositories oidplus

Rev

Rev 264 | Rev 296 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 264 Rev 281
Line 29... Line 29...
29
 
29
 
30
        // Action:     (actions defined by plugins)
30
        // Action:     (actions defined by plugins)
31
        // Method:     GET / POST
31
        // Method:     GET / POST
32
        // Parameters: ...
32
        // Parameters: ...
33
        // Outputs:    ...
33
        // Outputs:    ...
34
        foreach (OIDplus::getPagePlugins('*') as $plugin) {
34
        foreach (OIDplus::getPagePlugins() as $plugin) {
35
                $plugin->action($handled);
35
                $plugin->action($handled);
-
 
36
                if ($handled) break;
36
        }
37
        }
37
 
38
 
38
        // Action:     get_description
39
        // Action:     get_description
39
        // Method:     GET / POST
40
        // Method:     GET / POST
40
        // Parameters: id
41
        // Parameters: id
Line 64... Line 65...
64
                // This code is the very base functionality (menu handling)
65
                // This code is the very base functionality (menu handling)
65
                $handled = true;
66
                $handled = true;
66
                if (!isset($_REQUEST['search'])) throw new OIDplusException("Invalid args");
67
                if (!isset($_REQUEST['search'])) throw new OIDplusException("Invalid args");
67
 
68
 
68
                $found = false;
69
                $found = false;
69
                foreach (OIDplus::getPagePlugins('*') as $plugin) {
70
                foreach (OIDplus::getPagePlugins() as $plugin) {
70
                        $res = $plugin->tree_search($_REQUEST['search']);
71
                        $res = $plugin->tree_search($_REQUEST['search']);
71
                        if ($res) {
72
                        if ($res) {
72
                                echo json_encode($res);
73
                                echo json_encode($res);
73
                                $found = true;
74
                                $found = true;
74
                                break;
75
                                break;