public static function generateDEMOGRAFIA_SAUDE_longevidade2($block_longevidade) { $espvida = TextBuilder_EN::getVariaveis_table(TextBuilder_EN::$idMunicipio, "ESPVIDA"); //ESPVIDA $espvida_uf = TextBuilder_EN::getVariaveis_Uf(TextBuilder_EN::$idMunicipio, "ESPVIDA"); //ESPVIDA do Estado $espvida_brasil = TextBuilder_EN::getVariaveis_Brasil(TextBuilder_EN::$idMunicipio, "ESPVIDA"); //ESPVIDA do Brasil $block_longevidade->setData("subtitulo", ""); $block_longevidade->setData("info", ""); //@Translate $str2 = "The life expectancy at birth is the indicator that composes the Longevity dimension in the Municipal Human Development Index (MHDI).\n In [municipio], life expectancy at birth increased by [aumento_esp_nascer0010] years in the last two decades, from [esp_nascer91] years in 1991 to [esp_nascer00] years in 2000,\n and to [esp_nascer10] years in 2010. In 2010, life expectancy at birth for the state average is [esp_nascer10_estado] years and for the country,\n [esp_nascer10_pais] years."; $texto2 = new Texto($str2); $texto2->replaceTags("municipio", TextBuilder_EN::$nomeMunicipio); $texto2->replaceTags("aumento_esp_nascer0010", Formulas::getAumentoEsperancaVidaNascer0010($espvida)); $texto2->replaceTags("esp_nascer91", Formulas::getEsperancaVidaNascer91($espvida)); $texto2->replaceTags("esp_nascer00", Formulas::getEsperancaVidaNascer00($espvida)); $texto2->replaceTags("esp_nascer10", Formulas::getEsperancaVidaNascer10($espvida)); $texto2->replaceTags("esp_nascer10_estado", Formulas::getEsperancaVidaNascer10ESTADO($espvida_uf)); $texto2->replaceTags("esp_nascer10_pais", Formulas::getEsperancaVidaNascer10BRASIL($espvida_brasil)); $block_longevidade->setData("text2", $texto2->getTexto()); $block_longevidade->setData("text1", ""); $block_longevidade->setData("tableContent", ""); if (TextBuilder_EN::$print) { $block_longevidade->setData("quebra", ""); } else { $block_longevidade->setData("quebra", ""); } }