fieldset layout setter

@param String $layout
@param array $params
@return \Antares\Html\Form\Fieldset
178771
public function layout($layout, $params = [])
    {
        $this->layout = $layout;
        $this->params = $params;
        return $this;
    }
1213846
public function scaffoldFormField($title = null, $params = null)
    {
        return DimensionsField::create($this->name, $title);
    }
760952
public function hasLayout($layout)
    {
        $extensions = ['.php', '.phtml', '.html', '.tpl'];

        if (isset($this->presets[ 'extensions' ])) {
            array_unshift($partialsExtensions, $this->presets[ 'extension' ]);
        } elseif (isset($this->presets[ 'extension' ])) {
            array_unshift($extensions, $this->presets[ 'extension' ]);
        }

        $found = false;
        foreach ($extensions as $extension) {
            $extension = trim($extension, '.');

            if ($layout === 'theme') {
                $layoutFilePath = $this->getRealPath() . 'theme.' . $extension;
            } else {
                $layoutFilePath = $this->getRealPath() . 'layouts' . DIRECTORY_SEPARATOR . dash($layout) . DIRECTORY_SEPARATOR . 'layout.' . $extension;
            }

            if (is_file($layoutFilePath)) {
                $found = true;
                break;
            }
        }

        return (bool) $found;
    }
227081
protected function renderLayoutView($view, $path, $params)
    {
        $layout = $this->container->get('app.path').DS.$path.$this->layout.'.view.php';

        $data['yield'] = $this->output->renderView($view, $params);
        $output = $this->output->renderView($layout, array_merge($data, $params));
        $this['__content__'] = $output;

        if (method_exists($this->viewShared, 'rendered')) {
            $this->viewShared->rendered($this);
        }

        return $this;
    }
765907
protected function validateLayoutStyles(array $layout)
    {
        if (isset($layout[static::PADDING_TOP])
            && (0 > $layout[static::PADDING_TOP] || 300 < $layout[static::PADDING_TOP])
        ) {
            throw new InvalidArgumentException('Invalid layout padding top');
        }

        if (isset($layout[static::PADDING_BOTTOM])
            && (0 > $layout[static::PADDING_BOTTOM] || 300 < $layout[static::PADDING_BOTTOM])
        ) {
            throw new InvalidArgumentException('Invalid layout padding bottom');
        }
    }
140960
public function setEventLayout($flag, $value, array $layout)
    {
        $value = (string) $value;
        $this->eventLayout[$flag][$value] = $layout;
    }
1308949
public function setLayout(\Haven\CmsBundle\Entity\Layout $layout = null)
    {
        $this->layout = $layout;
    
        return $this;
    }
946561
public function setView($name, $layout=null)
	{
		$config = array(
			'name' => $name
		);
		if ($layout)
		{
			$config['layout'] = $layout;
		}
		$this->view = new View($config);

		// Set some commonly used vars
		$this->view->option     = $this->_option;
		$this->view->task       = $name;
		$this->view->controller = $this->_controller;
	}
566663
protected function renderOptions(BlockLayout $layout, array $options)
    {
        $layout->add(new Paragraph('<b>OPTIONS</b>'));
        $layout->beginBlock();

        foreach ($options as $option) {
            $this->renderOption($layout, $option);
        }

        $layout->endBlock();
        $layout->add(new EmptyLine());
    }
1356878
public function form_fieldset($params, $content, $smarty, &$repeat) {
        //$content is null when repeat is true and has block content when repeat is false
        if ($repeat) {
            $attributes = isset($params['attrs']) ? $params['attrs'] : array();
            $legend = isset($params['legend']) ? $params['legend'] : null;
            return Form::fieldset_open($attributes, $legend);
        } else {
            return $content . Form::fieldset_close();
        }
    }
238658
protected function aplicarDadosAoLayout($layout, $dados)
    {
        $chaveAsbace = $dados['Agencia'] . $dados['Conta'] . $dados['NossoNumero'] . $dados['Banco'];

        $primeiroDvAsbace = Number::primeiroDvAsbace($chaveAsbace);
        $segundoDvAsbace = Number::segundoDvAsbace($chaveAsbace, $primeiroDvAsbace);
        $primeiroDvAsbace = Number::aplicarRegraPrimeiroDvAsbace($chaveAsbace, $primeiroDvAsbace);

        $codigoBarras = StringBuilder::insert($layout, $dados);
        $codigoBarras = $this->inserirDigitoVerificador($codigoBarras, $primeiroDvAsbace, 41);
        $codigoBarras = $this->inserirDigitoVerificador($codigoBarras, $segundoDvAsbace, 42);

        return $codigoBarras;
    }
785010
public function setLayout($layout){
        $this->_layout = $layout;
        if(isset($this->_view[0])) {
            $this->resetViews();
        }
        $this->addView($layout);
    }
1030180
public function render(string $layout = null, array $context = [])
    {
        if (null === $layout) {
            $layout = 'default';
        }

        $grav = Grav::instance();

        $block = HtmlBlock::create();
        $block->disableCache();

        $output = $this->getTemplate($layout)->render(
            ['grav' => $grav, 'config' => $grav['config'], 'block' => $block, 'form' => $this, 'layout' => $layout] + $context
        );

        $block->setContent($output);

        return $block;
    }
507864
public function newLayoutCopyStruct(?Layout $layout = null): LayoutCopyStruct
    {
        $layoutCopyStruct = new LayoutCopyStruct();

        if (!$layout instanceof Layout) {
            return $layoutCopyStruct;
        }

        $layoutCopyStruct->name = $layout->getName() . ' (copy)';

        return $layoutCopyStruct;
    }
237707
public function addFieldsetsFromConfig(array $fieldsets, $container = null)
    {
        foreach ($fieldsets as $legend => $config) {
            if (!is_numeric($legend)) {
                $this->createFieldset($legend, $container);
            } else {
                $this->createFieldset(null, $container);
            }
            $this->addFieldsFromConfig($config);
        }
        return $this;
    }
1059845
public function layout($layout)
    {
        // Save the layout
        if ($layout == 'control group') {
            $layout = 'form';
        }

        // Backwards compat
        if (in_array($layout, ['full', 'sidebar', 'form'])) {
            $this->layout = $layout;
        }

        // Make the default width of form layout a span9.  Because typically the form
        // layout is only used on full width forms
        if ($layout == 'form') {
            $this->addClass('span9');
        }

        // Chain
        return $this;
    }
1300580
public function setLayout($layout) {
		if (!$layout) {
			$this->request->getSession()->delete('Setup.layout');
			return;
		}
		$this->request->getSession()->write('Setup.layout', $layout);
	}