demianturner / sgl-docs-tickets-migration-test

0 stars 0 forks source link

Unify config parsing for certain libs and factor out to separate place #1617

Open demianturner opened 11 years ago

demianturner commented 11 years ago

Example config string {{{ strategies = " SGL_Sitemap_ArrayNavigation: changefreq:monthly, rootNode:2; SGL_Sitemap_StaticLinks: changefreq:monthly, skipMultiLingual:1, path:/modules/sitemap/staticLinks.ini; SGL_Sitemap_FeedReader: changefreq:monthly, skipMultiLingual:1, path:/modules/sitemap/feeds.ini, forceCache:0 " }}} Example result {{{ array ( 'SGL_Sitemap_ArrayNavigation' => array ( 'changefreq' => 'monthly', 'rootNode' => '2', ), 'SGL_Sitemap_StaticLinks' => array ( 'changefreq' => 'monthly', 'skipMultiLingual' => '1', 'path' => '/modules/sitemap/staticLinks.ini', ), 'SGL_Sitemap_FeedReader' => array ( 'changefreq' => 'monthly', 'skipMultiLingual' => '1', 'path' => '/modules/sitemap/feeds.ini', ), ) }}} This system is already used for Sitemap module, can be applied to Siteexporter and many others.