Lots of little changes, basic structure now looking pretty good
[glcas.git] / plugins / repo.php
index 804a5ce..c85ff12 100644 (file)
@@ -9,7 +9,26 @@ class GLCASRepo {
        
        function go($url)
        {
-               echo "i am the repo man, i repo the repo";
+               error_log("repo:go called");
+               GLCASpageBuilder($this, "body");
+       }
+       
+       function body($url)
+       {
+               echo "for the repo, i am the repo $url";
+       }
+       
+       function getRepoDetailsYum($url)
+       {
+               $actionurl = $url."/repodata/repomd.xml";
+               
+               error_log("Getting for action of $actionurl");
+               
+               $ld = file_get_contents($actionurl);
+               
+               if(!$ld) return false;
+               
+               return $ld;
        }
        
        private $config;