Main Page | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

ModuleInfo.class.php

Go to the documentation of this file.
00001 <?php
00017 class ModuleInfo
00018 {
00032         function &GetInformation($type, $extra)
00033         {
00034                 if ($type == "file")
00035                 {
00036                         $info = pathinfo($extra);
00037                         
00038                         if ($info["extension"] == "xml")
00039                         {
00040                                 include_once("core/modules/moduleinformation/backends/ModuleInfoXml.class.php");                                
00041                                 return new ModuleInfoXml($extra);
00042                         }
00043                         else if ($info["extension"] == "inc")
00044                         {
00045                                 include_once("core/modules/moduleinformation/backends/ModuleInfoInc.class.php");
00046                                 return new ModuleInfoInc($extra);
00047                         }
00048                         else
00049                                 return null;
00050                 }
00051                 else
00052                         return null;
00053         }
00054 }
00055 ?>

Generated on Wed Nov 19 20:29:35 2003 for James by doxygen 1.3.4