Instance=$instance; foreach ($this->Instance->GetSectionOptions() as $currentRow) { $instance->Sections[]=new SectionRenderer($currentRow,$instance); } } public function Initialize(){ foreach($this->Instance->Sections as $currentSection) $currentSection->Initialize(); } }