protected function inputOptions($options) { $resources = $options['resources']; $bibliotecaId = $this->getBibliotecaId(); if ($bibliotecaId and empty($resources)) { $resources = App_Model_IedFinder::getBibliotecaFontes($bibliotecaId); } return $this->insertOption(null, "Selecione uma fonte", $resources); }