Lots of little changes, basic structure now looking pretty good
[glcas.git] / plugins / repo.php
1 <?php
2 $URL_HANDLERS["*"] = "GLCASRepo";
3
4 class GLCASRepo {
5         function __construct($config)
6         {
7                 $this->config = $config;
8         }
9         
10         function go($url)
11         {
12                 error_log("repo:go called");
13                 GLCASpageBuilder($this, "body");
14         }
15         
16         function body($url)
17         {
18                 echo "for the repo, i am the repo $url";
19         }
20         
21         function getRepoDetailsYum($url)
22         {
23                 $actionurl = $url."/repodata/repomd.xml";
24                 
25                 error_log("Getting for action of $actionurl");
26                 
27                 $ld = file_get_contents($actionurl);
28                 
29                 if(!$ld) return false;
30                 
31                 return $ld;
32         }
33         
34         private $config;
35 }
36
37 ?>