Exemplo n.º 1
0
 public static function getPlatformHandler()
 {
     switch (FlexiConfig::$sFramework) {
         case "modx":
             return FlexiModxPlatformHandler::getInstance();
             break;
         case "modx2":
             return FlexiModx2PlatformHandler::getInstance();
             break;
         case "iscript":
             return FlexiIScriptPlatformHandler::getInstance();
             break;
         default:
             return FlexiStandAlonePlatformHandler::getInstance();
             //TODO
     }
     return null;
 }