/** * Create the module globals c header file fragment * * @access private * @return string module globals code fragment */ function generateGlobalsH() { if (empty($this->globals)) { return ""; } $code = CodeGen_PECL_Element_Global::hCodeHeader($this->name); foreach ($this->globals as $global) { $code .= $global->hCode($this->name); } $code .= CodeGen_PECL_Element_Global::hCodeFooter($this->name); return $code; }