Añade la tab de historiales
@param array $options
517390
public function addHistories(array $options = [])
    {
        $resolver = new OptionsResolver();
        $resolver->setDefaults([
            "add_content_div" => false,
            "template" => $this->options["history_manager"]["template"],
            "title" => $this->trans("messages.tab.history", [], "messages"),
        ]);
        $options = $resolver->resolve($options);
        $tabContentHistory = new TabContent($options);
        $this->tab->addTabContent($tabContentHistory);
        
    }
81440
public function date($options = []){
        if (is_string($options)) {
            $options = ['class' => $options];
        }

        if (!Arr::has($options, 'type')) {
            Arr::set($options, 'type', 'date');
        }

        return $this->input($options);
    }
722229
public function setOptions($options) {
		$this->renderer->getElement()->setOptions($options);
		$this->renderer->getHtmlElement()->setOptions($options);
	}
677220
public function setOptionsArray($options) {
    foreach($options as $key => $value) {
      if (!$this->setOption($key, $value)) {
        return false;
      }
    }
    return true;
  }
867973
public function setOptions(Array $options)
    {
        foreach ($options as $optionName => $optionValue) {
            $this->setTableConfig($optionName, $optionValue);
        }
        return $this;
    }
646762
public function setOptions(array $options)
    {
        if (isset($options['uniqueId'])) {
            $this->sessionId = $options['uniqueId'];
        }

        $this->options = $options;
    }
693260
public function setTabs($tabs)
    {
        if (is_callable($tabs)) {
            $tabs = call_user_func($tabs, $this);
        }

        return $this->setElements($tabs);
    }
1067844
public function getVenueHistory(array $options = array())
    {

        $uri = $this->buildUserResourceUri('venuehistory');
        $response = $this->makeAuthenticatedApiRequest($uri);

        return $response->venues->items;

    }
1255178
public function setSearchOptions($options = [])
    {
        extract(array_merge([
            'mode' => null,
            'scope' => null
        ], $options));

        $this->searchMode = $mode;
        $this->searchScope = $scope;
    }
442212
public function addOptions(array $options)
    {
        foreach ($options as $option) {
            $this->options[] = $option;
        }
        // this will auto select the options based on this fields value
        $this->selectOptionsFromValue();

        return $this;
    }
1085559
private function SaveOptions(array $options)
    {
        $prev = null;
        foreach ($options as $value=>$text)
        {
            $option = new SelectOption();
            $option->SetSelectField($this->select);
            $option->SetPrevious($prev);
            $option->SetText($text);
            $option->SetValue($value);
            $option->Save();
            $prev = $option;
        }
    }
1041791
public function loadConfig(array $options)
    {
        foreach (self::$AVAILABLE_OPTIONS as $option) {
            if (isset($options[$option])) {
                $method = 'set' . \ucfirst($option);
                $this->$method($options[$option]);
            }
        }

        // legacy `tabCompletion` option
        if (isset($options['tabCompletion'])) {
            $msg = '`tabCompletion` is deprecated; use `useTabCompletion` instead.';
            @\trigger_error($msg, E_USER_DEPRECATED);

            $this->setUseTabCompletion($options['tabCompletion']);
        }

        foreach (['commands', 'matchers', 'casters'] as $option) {
            if (isset($options[$option])) {
                $method = 'add' . \ucfirst($option);
                $this->$method($options[$option]);
            }
        }

        // legacy `tabCompletionMatchers` option
        if (isset($options['tabCompletionMatchers'])) {
            $msg = '`tabCompletionMatchers` is deprecated; use `matchers` instead.';
            @\trigger_error($msg, E_USER_DEPRECATED);

            $this->addMatchers($options['tabCompletionMatchers']);
        }
    }
1322756
protected function getPrestaShopOptions(array $options)
    {
        $result = array(
            'query' => array(),
            'id' => 'id',
            'name' => 'name',
        );

        foreach ($options as $value => $label) {
            $result['query'][] = array(
                'id' => $value,
                'name' => $label,
            );
        }

        return $result;
    }
25387
public function addDocuments(array $options = [])
    {
        $resolver = new OptionsResolver();
        $resolver->setDefaults([
            "add_content_div" => false,
            "template" => $this->options["document_manager"]["template"],
            "title" => $this->trans("messages.tab.documents", [], "messages"),
            "icon" => "vf vf-documents",
        ]);
        $options = $resolver->resolve($options);
        $tabContentDocuments = new TabContent($options);
        $this->tab->addTabContent($tabContentDocuments);
        $folder = "uploaded";
        $this->getObjectDataManager()->documents()->folder($folder);
        $this->parametersToView["parameters_to_route"]["_conf"]["folder"] = $folder;
//        $this->parametersToView["form"] = function(){
//            
//        };
        $this->parametersToView["form"] = $this->createForm(DocumentsType::class)->createView();
    }
440443
public function select($options = [])
    {
        $source = [];

        foreach ($options as $key => $value) {
            $source[] = [
                'value' => $key,
                'text' => $value,
            ];
        }

        $this->addOptions(['source' => $source]);
    }
889093
public function render(array $options = array())
    {
        $options = $this->optionsTratament($options);
        $this->_pdf = new ZfPdf\PdfDocument();
        $this->_font = ZfPdf\Font::fontWithName(ZfPdf\Font::FONT_HELVETICA);

        //$options['colors'] = array_merge($colors, (array) $options['colors']);

        $this->_la = '';
        $larg = $this->calculateCellSize();
        $this->_cellFontSize = 8;

        // Define os estilos do documento
        $this->defineStyles($options);

        // Pega o total de páginas
        $this->getTotalPages($options);

        // Adiciona página ao documento PDF
        $this->addPage($options);

        // Adicionar logomarca se definido nas opções
        $this->addLogo($options);

        // Adiciona Titulo e Subtitulo de acordo com as opções definidas
        $this->addTitle($options);

        //Iniciar a contagem de paginas
        $pagina = 1;

        // Desenha o rodapé do documento
        $this->drawFooter($pagina, $options);

        $this->_page->setFont($this->_font, $this->_cellFontSize);

        $iLarg = 0;
        foreach ($larg as $final) {
            $this->_cell[$iLarg] = round($final * ($this->_page->getWidth() - 80) / array_sum($larg));
            $iLarg++;
        }

        $cellsCount = count($this->_arrayForm['gridfieldsconfig']);
        $this->_largura = ($this->_page->getWidth() - 80) / $cellsCount;
        $this->_altura = $this->_page->getHeight() - 120;

        // Desenha os nomes dos campos
        $this->drawFieldName($this->_topo, $this->_styleText);

        $this->_page->setStyle($this->_style);

        if (is_array($this->_arrayData) and !empty($this->_arrayData)) {

            $ia = 0;
            $aa = 0;
            foreach ($this->_arrayData as $value) {
                if ($this->_altura <= 80) {

                    // Adiciona página ao documento PDF
                    $this->addPage($options);

                    $pagina++;

                    // Adicionar logomarca se definido nas opções
                    $this->addLogo($options);

                    // Adiciona Titulo e Subtitulo de acordo com as opções definidas
                    $this->addTitle($options);

                    //set font
                    $this->_altura = $this->_page->getHeight() - 120;

                    // Desenha o rodapé do documento
                    $this->drawFooter($pagina, $options);

                    //
                    $this->_largura1 = 40;
                    $this->_page->setFont($this->_font, $this->_cellFontSize + 1);

                    // Desenha os nomes dos campos
                    $this->drawFieldName($this->_topo, $this->_styleText);
                }

                $this->_la = 0;
                $this->_altura = $this->_altura - 16;
                $i = 0;
                $tdf = $ia % 2 ? $this->td : $this->td2;
                $a = 1;

                //A linha horizontal
                //$centrar = round(($this->_page->getWidth() - 80) / 2) + 30;
                if ((int) $this->_la == 0) {
                    $this->_largura1 = 40;
                } else {
                    $this->_largura1 = $this->_cell[$i - 1] + $this->_largura1;
                }
                $this->_la = 0;

                ////////////
                //Vamos saber quantas linhas tem este registo
                $nlines = array();
                $nl = 0;
                foreach ($value as $value2) {
                    $line = $this->widthForStringUsingFontSize(strip_tags(trim($value2)), $this->_font, 8);
                    $nlines[] = ceil($line / $this->_cell[$nl]);
                    $nl++;
                }

                sort($nlines);
                foreach ($value as $value1) {
                    $value1 = strip_tags(trim($value1));
                    if ((int) $this->_la == 0) {
                        $this->_largura1 = 40;
                    } else {
                        $this->_largura1 = $this->_cell[$i - 1] + $this->_largura1;
                    }

                    $this->_page->setStyle($tdf);
                    $this->_page->drawRectangle($this->_largura1, $this->_altura - 4, $this->_largura1 + $this->_cell[$i] + 1, $this->_altura + 12);
                    $this->_page->setStyle($this->_styleText);
                    $this->_page->drawText($value1, $this->_largura1 + 2, $this->_altura, 'UTF-8');
                    $this->_la = $this->_largura1;
                    $i++;
                    $a++;
                }

                $aa++;
                $ia++;
            }
        }
        header('Content-Description: File Transfer');
        header('Cache-Control: public, must-revalidate, max-age=0'); // HTTP/1.1
        header('Pragma: public');
        header('Expires: Sat, 26 Jul 1997 05:00:00 GMT'); // Date in the past
        header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
        header("Content-Type: application/pdf");
        header('Content-Disposition: attachment; filename="' . $options['name'] . '.pdf"');
        header('Content-Transfer-Encoding: binary');

        echo $this->_pdf->render();
        die();
    }
123350
public function setOptions(array $options): Options
    {
        foreach ($options as $key => $option) {
            $this->options[$key] = $option;
        }

        return $this;
    }