<?php

class Zend_View_Helper_GetUfs extends Zend_View_Helper_Abstract {


  /**
   *
   * @param integer $language_id
   * @return Array
   */
  public function getUfs($uf){
    // index all languages
    $ufs = array();
    $ufs["AC"]="AC";
    $ufs["AL"]="AL";
    $ufs["AM"]="AM";
    $ufs["AP"]="AP";
    $ufs["BA"]="BA";
    $ufs["CE"]="CE";
    $ufs["DF"]="DF";
    $ufs["ES"]="ES";
    $ufs["GO"]="GO";
    $ufs["MA"]="MA";
    $ufs["MG"]="MG";
    $ufs["MS"]="MS";
    $ufs["MT"]="MT";
    $ufs["PA"]="PA";
    $ufs["PB"]="PB";
    $ufs["PE"]="PE";
    $ufs["PI"]="PI";
    $ufs["PR"]="PR";
    $ufs["RJ"]="RJ";
    $ufs["RN"]="RN";
    $ufs["RS"]="RS";
    $ufs["RO"]="RO";
    $ufs["RR"]="RR";
    $ufs["SC"]="SC";
    $ufs["SE"]="SE";
    $ufs["SP"]="SP";
    $ufs["TO"]="TO";


    $txt = '';
    foreach ($ufs as $key => $value) {
      $selected = "";
      if ( $key == $uf) {          
        $selected = " selected='selected' ";
      }
      $txt .="<option value='".$key."' ".$selected.">".$value."</option>";
    }
    
    
    return $txt;
  }

}