function getListaDeAnnos($id = "") { $id = $id == "" ? "idnumerodeanno" : $id; $this->mLIDs[] = $id; $xS = new cSelect($id, $id, ""); $xF = new cFecha(0); foreach ($xF->getAnnosInArray() as $key => $value) { $xS->addEspOption($key, "{$value}"); } $xS->setOptionSelect(date("Y")); $xS->setEsSql(); $xS->setLabel("TR.Ejercicio"); return $xS; }