opt = $opt; } function exec(&$Doc) { $Settings = SiteMap::getObj('Settings/Settings.php'); foreach ($this->allowedOptions as $optName) { if (isset($this->opt[$optName])) { $Settings->$optName = $this->opt[$optName]; } } $Settings_Grid = SiteMap::getObj('Settings/Grid/Grid.php', &$Doc, $Settings); $Settings_Grid->exec(); } }