/** * * @param string $section * @return boolean */ public function deleteSection($section) { $list = $this->preferenceDao->findPreferenceListBySectionName($section); foreach ($list as $preference) { $this->deletePreference($preference->key); } return $this->preferenceSectionDao->deleteSection($section); }