protected function _build($options) { echo "\nsettings...\n"; if (!file_exists('build/component')) { mkdir('build/component'); } Kwf_Component_Settings::resetSettingsCache(); foreach (glob('build/component/*') as $f) { unlink($f); } $fileName = 'build/component/settings'; try { $data = Kwf_Component_Settings::_getSettingsCached(); } catch (Kwf_Trl_BuildFileMissingException $e) { $originatingException = $e->getSettingsNonStaticTrlException(); if ($originatingException) { throw $originatingException; } throw $e; } foreach ($data as $cmp => $settings) { self::_checkSettings($cmp, $settings); } file_put_contents($fileName, serialize($data)); $componentClasses = Kwc_Abstract::getComponentClasses(); echo "masterLayouts...\n"; Kwf_Component_MasterLayout_Abstract::_buildAll($componentClasses); echo "layouts...\n"; Kwf_Component_Layout_Abstract::_buildAll($componentClasses); }
protected function _build($options) { if (!file_exists('build/component')) { mkdir('build/component'); } Kwf_Component_Settings::resetSettingsCache(); $fileName = 'build/component/settings'; if (file_exists($fileName)) { unlink($fileName); } $data = Kwf_Component_Settings::_getSettingsCached(); foreach ($data as $cmp => $settings) { self::_checkSettings($cmp, $settings); } file_put_contents($fileName, serialize($data)); }
protected function _build($options) { if (!file_exists('build/component')) { mkdir('build/component'); } Kwf_Component_Settings::resetSettingsCache(); $fileName = 'build/component/settings'; if (file_exists($fileName)) { unlink($fileName); } try { $data = Kwf_Component_Settings::_getSettingsCached(); } catch (Kwf_Trl_BuildFileMissingException $e) { $originatingException = $e->getSettingsNonStaticTrlException(); if ($originatingException) { throw $originatingException; } throw $e; } foreach ($data as $cmp => $settings) { self::_checkSettings($cmp, $settings); } file_put_contents($fileName, serialize($data)); }
public static final function resetSettingsCache() { Kwf_Component_Settings::resetSettingsCache(); }