Open up a new HTML form.

@param array $options

@return string
345166
public function open(array $options = [])
    {
        $method = array_get($options, 'method', 'post');

        // We need to extract the proper method from the attributes. If the method is
        // something other than GET or POST we'll use POST since we will spoof the
        // actual method since forms don't support the reserved methods in HTML.
        $attributes['method'] = $this->getMethod($method);

        $attributes['action'] = $this->getAction($options);

        $attributes['accept-charset'] = 'UTF-8';

        if (isset($options['files']) && $options['files']) {
            $options['enctype'] = 'multipart/form-data';
        }

        // Finally we're ready to create the final form HTML field. We will attribute
        // format the array of attributes. We will also add on the appendage which
        // is used to spoof requests for this PUT, PATCH, etc. methods on forms.
        $attributes = array_merge(

            $attributes, array_except($options, $this->reserved)

        );

        // Finally, we will concatenate all of the attributes into a single string so
        // we can build out the final form open statement. We'll also append on an
        // extra value for the hidden _method field if it's needed for the form.
        $attributes = $this->html->attributes($attributes);

        return '<form'.$attributes.'>';
    }
799578
public static function createFromOptions(array $options)
    {
        Validate::notNull($options['Name'], 'options[Name]');

        $accessPolicy = new self($options['Name']);
        $accessPolicy->fromArray($options);

        return $accessPolicy;
    }
563274
public function outputHtml($html, $options = array())
    {
        $this->addHeader('Content-Type', 'text/html; charset=utf-8')
            ->addOptionalHeaders($options)
            ->sendHeaders();

        echo $html;
        exit;
    }
990940
public static function create(array $options): Token
    {
        $token = new self($options);
        $token->token = $token->generate();

        return $token;
    }
158542
public function html(array $options = [], array $namespaces = [])
    {
        $this->addNamespace('og', 'http://ogp.me/ns#');
        $this->addNamespace('fb', 'http://ogp.me/ns/fb#');

        if ($namespaces) {
            foreach ($namespaces as $ns => $url) {
                $this->addNamespace($ns, $url);
            }
        }

        $this->setType($this->config('type'));
        $this->setUri($this->request->here);
        $this->setTitle($this->_View->fetch('title'));

        if ($appId = $this->config('app_id')) {
            $this->setAppId($appId);
        }

        return $this->Html->tag('html', null, $this->config('namespaces') + $options);
    }
97851
protected function createForm($options = null)
    {
        if (\MUtil_Bootstrap::enabled()) {
            if (!isset($options['class'])) {
                $options['class'] = 'form-horizontal';
            }

            if (!isset($options['role'])) {
                $options['role'] = 'form';
            }
        }
        return new \Gems_Form($options);
    }
843717
public function form(array $options = [])
    {
        $this->options = $options;
        $this->form = parent::form(array_merge([
            'form' => [
                'class'  => 'form-horizontal',
                'action' => request()->url(),
                'method' => 'POST',

            ],
        ], $this->options));

        return view('formmodel::form_types.plain', [
            'form_'      => $this->form,
            'components' => $this->vue_components,
            'type'       => $this->options['method'],
        ]);
    }
906882
public function checkbox($options)
    {

        if (is_string($options)) {
            $options = ['class' => $options];
        }

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

        return $this->input($options);
    }
1250745
public function input($options = [])
    {
        if (is_string($options)) {
            $options = ['class' => $options];
        }

        $input = new Input($this->expression('input'), $options);

        return $input;
    }
989081
public function createForm(array $options = array())
    {
        $options = array_merge(array('validation_groups' => $this->validationGroups), $options);
        
        return $this->formFactory->createNamed($this->name, $this->type, null, $options);
    }
1206257
public function create(array $options = array())
    {
        $reflClass = $this->getReflectionClass($options);

        $options = array_merge(array(
            'orientation' => 'P',
            'unit' => 'mm',
            'format' => 'USLETTER',
            'unicode' => true,
            'encoding' => 'UTF-8',
            'diskcache' => true,
            'pdfa' => false,
            'printHeader' => false,
            'printFooter' => false,
            'margins' => array(15, 27, 15),
            'autoPageBreak' => array(true, 25),
        ), $options);

        $pdf = $reflClass->newInstanceArgs($this->getConstructorOptions($options));

        foreach ($options as $option => $arguments) {
            if (is_callable(array($pdf, 'set' . $option))) {
                if (!is_array($arguments)) {
                    if (null === $arguments) {
                        $arguments = array();
                    } else {
                        $arguments = array($arguments);
                    }
                }

                call_user_func_array(array($pdf, 'set' . $option), $arguments);
            }
        }

        return new TcPdf($pdf);
    }
343557
public static function options($options, $selected = []): string
    {
        $html     = '';
        $selected = array_flip($selected);

        foreach ($options as $value => $name) {
            $html .= is_array($name)
                ? self::tag('optgroup', ['label' => $value], self::options($name, $selected))
                : self::tag('option', ['value' => $value] + (isset($selected[$value]) ? ['selected' => 'selected'] : []), $name);
        }

        return $html;
    }
693747
public function submit($options = [])
    {
        if (is_string($options)) {
            $options = ['value' => $options];
        }

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

        $input = new Input($this->expression('input'), $options);

        return $input;
    }
619106
public function form($options)
    {
        $options = $this->merge([], (array) $options);
        $Form    = $this->App->s::widgetForm($this, []);

        $class = ''; // Initialize.
        $class .= $this->App::CORE_CONTAINER_SLUG.'-menu-page-area';
        $class .= ' '.$this->App::CORE_CONTAINER_SLUG.'-widget-wrapper';
        $class .= ' '.$this->App->Config->©brand['©slug'].'-widget-wrapper';
        $class .= $this->id_base !== $this->App->Config->©brand['©slug'] ? ' '.$this->id_base.'-widget-wrapper' : '';

        echo '<div class="'.esc_attr($class).'">';
        echo    $Form->openTable();

        echo      $Form->inputRow([
            'label' => __('Title:', 'wp-sharks-core'),
            'name'  => 'title',
            'value' => $options['title'],
        ]);
        echo      $this->formContent($Form, $options);

        echo    $Form->closeTable();
        echo '</div>';
    }
53598
public function getFormOptions($options = []) {
		if (empty($options) || !is_array($options)) {
			$options = [];
		}

		$optionsDefault = $this->_getOptionsForElem('form');
		$result = $optionsDefault + $options;

		return $result;
	}
674425
public function loadHtml($html, $options = null)
    {
        return $this->load($html, false, Document::TYPE_HTML, $options);
    }
428687
public function createLink(array $options)
    {
        $str = ' ';
        foreach ($options as $key => $value) {
            if (($str !== ' ')) {
                $str .= ' '.$key.'="'.$value.'"';
            } else {
                $str .= $key.'="'.$value.'"';
            }
        }

        $html = '<link' . $str;
        if ($this->doctype == self::DOCTYPE_XHTML1_0_FRAMESET ||
                $this->doctype == self::DOCTYPE_XHTML1_0_STRICT ||
                $this->doctype == self::DOCTYPE_XHTML1_0_TRANSITIONAL) {
            $html .= '/>';
        } else {
            $html .= '>';
        }

        return $html;
    }