示例#1
0
        /// <summary>
        /// Parses the object.
        /// </summary>
        /// <param name="physicalPath">The physical path. <example>d:\cms\sites\site1\themes\default</example></param>
        private void Parse(string physicalPath)
        {
            //remaining: site1\themes\default
            var relativePaths = Site.TrimBasePhysicalPath(physicalPath).Split(Path.DirectorySeparatorChar);
            //parse themes object, remainingPaths will be: site1
            var remainingPaths = ParseObject(relativePaths);

            //
            this.Site = Site.ParseSiteFromRelativePath(remainingPaths);
        }