Framework/Client/Cache.php
/**
         * Get all the route information to add it to the database
         * @param type $moduleName Name of the module
         * @param type $routingClassUrl url of the controller
         */
Get all the route information to add it to the database
@param type $moduleName Name of the module
@param type $routingClassUrl url of the controller
Get all the route information to add it to the database @param type $moduleName Name of the module @param type $routingClassUrl url of the controller
protected function addRoutsToDatabase($moduleName, $routingFile)
        {
                $routes = \json_decode(\file_get_contents($routingFile));
                if (is_array($routes)) {
                        foreach ($routes as $route) {
                                $routeArray = json_decode(json_encode($route), true);
                                $identifier = $routeArray["identifier"];
                                $path = $routeArray["path"];
                                $component = $routeArray["component"];
                                $layout = $routeArray["layout"];
                                $this->setCacheUrl($identifier, $path, $component, $layout, $moduleName);
                        }
                }
        }
protected function addRoutsToDatabase ( $ moduleName , $ routingFile ) { $ routes = \ json_decode ( \ file_get_contents ( $ routingFile ) ) ; if ( is_array ( $ routes ) ) { foreach ( $ routes as $ route ) { $ routeArray = json_decode ( json_encode ( $ route ) , true ) ; $ identifier = $ routeArray [ " identifier " ] ; $ path = $ routeArray [ " path " ] ; $ component = $ routeArray [ " component " ] ; $ layout = $ routeArray [ " layout " ] ; $ this -> setCacheUrl ( $ identifier , $ path , $ component , $ layout , $ moduleName ) ; } } }
Get all the route information to add it to the database
 @param type $moduleName Name of the module
 @param type $routingClassUrl url of the controller
Get all the route information to add it to the database @param type $moduleName Name of the module @param type $routingClassUrl url of the controller