findControlsByType($type, true); // Only one config-type child control is expected if (count($controls) === 1) { $child_control = $controls[0]; } return $child_control; } public function getConfigResourceType($obj) { $obj_vars = get_object_vars($obj); $resource_type = key($obj_vars); return $resource_type; } protected function getModule($id) { return $this->getApplication()->getModule($id); } } ?>