Ejemplo 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;
 }
Ejemplo n.º 2
0
 public static function getInstance()
 {
     if (is_null(self::$oInstance)) {
         self::$oInstance = new FlexiModxPlatformHandler();
     }
     return self::$oInstance;
 }