Render email field row

@access public

@param IFormModel $model model
@param string $property model property
@param array $options attribute array

@return string
555754
public function emailFieldRow(IFormModel $model, $property, array $options = [])
    {
        $element = $this->getField($model, $property);
        $options['id'] = $element['id'];

        return Html::openTag('div', $this->getBlock('block', $options)).
        Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)).
        $this->emailField($model, $property, $options).
        Html::closeTag('div');
    }
274228
public function renderProperty($object, $property = null)
    {
        if (!empty($property)) {
            $property = '.'.$property;
        }

        return $object.$property;
    }
169747
private function renderProperties(MetadataInterface $metadata, array $options)
    {
        $properties = array_replace_recursive(
            $options['defaults'],
            array_filter($metadata->toArray(), function ($item) { return null !== $item; })
        );

        $renderedProperties = [];
        foreach ($properties as $propertyKey => $propertyValue) {
            if (null === $propertyValue) {
                continue;
            }

            $this->ensurePropertyIsKnown($metadata, $propertyKey);

            $renderedProperties[] = sprintf(
                '<meta name="%s" content="%s" />',
                $this->keysToNames[$propertyKey],
                htmlentities($propertyValue, \ENT_COMPAT)
            );
        }

        return $renderedProperties;
    }
186568
protected function renderFromAddress(EmailInterface $email, array $parameters = array())
    {
        if (null === $email->getFromAddress()) {
            return $this->options['admin_email'];
        }

        return $this->renderTemplate('from_address', $parameters, $email->getChecksum());
    }
513739
public function def(array $options=[]) {
		if(!$this->widget)
			throw new \Exception('No default render function for this field');
		return $this->render($this->widget, $options);
	}
1255908
public function encode(Model $Model, $data, $options = array()) {
		$options = array_merge($this->_options, $options);
		$data = (array) $data;

		$elements = array();
		$output = '[]';

		if (false === $options['encoding']) {
			$options['encoding'] = 'normal';
		} else if (true === $options['encoding']) {
			$options['encoding'] = 'json';
		}

		// trim
		if ($options['trim']) {
			foreach ($data as $id => $d) {
				$d = $this->_trim($d, $options);
				if ($d != '') {
					$elements[$id] = $d;
				}
			}
		} else {
			foreach ($data as $id => $d) {
				$elements[$id] = $d;//'"' . $d . '"';
				if (!is_array($d) && 'normal' == $options['encoding']) {
					$elements[$id] = '"' . $d . '"';
				}
			}
		}

		// encode
		switch ($options['encoding']) {
			case 'normal':
				$output = '[' . $this->_implode(',', $elements) . ']';
			break;

			case 'serialize':
				$output = serialize($elements);
			break;

			case 'json':
				$output = json_encode($elements);
			break;

			default:
				$output = json_encode($elements, $options['encoding']);
		}

		return $output;
	}
1036436
public function dropDownListField(IFormModel $model, $property, array $options = [])
    {
        $element = $this->getField($model, $property);
        $options['id'] = $element['id'];

        if (!empty($element['value'])) {
            $options['selected'] = $element['value'];
        }

        return Html::dropDownList($element['name'], $this->getBlock('elements', $options), $options);
    }
419969
public function textFieldRow(IFormModel $model, $property, array $options = [])
    {
        $element = $this->getField($model, $property);
        $options['id'] = $element['id'];

        return Html::openTag('div', $this->getBlock('block', $options)).
        Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)).
        $this->textField($model, $property, $options).
        Html::closeTag('div');
    }
661284
public function renderInput(array $options = [])
    {
        $attrs = $this->prepareAttributes();

        if ($this->form && $this->form->getRenderer()) {
            return $this->form->getRenderer()->renderInput($this, $attrs, $options);
        }

        return $this->buildInput($attrs);
    }
1006246
public function renderInputCell($model, $key, $index)
    {
        $form = $this->grid->form;
        $items = $this->items;
        if ($this->widget !== null) {
            if (is_array($this->widget)) {
                list($widget, $options) = $this->widget;
                if ($options instanceof \Closure) {
                    $options = call_user_func($options, $model, $key, $index);
                }
            } else {
                $widget = $this->widget;
                $options = [];
            }
            if ($form instanceof ActiveForm) {
                return $form->field($model, "[$key]{$this->attribute}", ['template' => $this->template])
                        ->widget($widget, $options);
            } else {
                $options = array_merge([
                    'model' => $model,
                    'attribute' => "[$key]{$this->attribute}"
                    ], $options);
                return $widget::widget($options);
            }
        } elseif ($items !== null) {
            if ($items instanceof \Closure) {
                $items = call_user_func($items, $model, $key, $index);
            }
            if ($form instanceof ActiveForm) {
                return $form->field($model, "[$key]{$this->attribute}", ['template' => $this->template])
                        ->dropDownList($items, $this->inputOptions);
            } else {
                return Html::activeDropDownList($model, "[$key]{$this->attribute}", $items, $this->inputOptions);
            }
        } else {
            if ($form instanceof ActiveForm) {
                return $form->field($model, "[$key]{$this->attribute}", ['template' => $this->template])
                        ->textInput($this->inputOptions);
            }
            return Html::activeTextInput($model, "[$key]{$this->attribute}", $this->inputOptions);
        }
    }
721221
public function checkBoxListField(IFormModel $model, $property, array $options = [])
    {
        $element = $this->getField($model, $property);
        $checkboxes = !empty($options['checkboxes']) ? $options['checkboxes'] : [];
        $format = !empty($options['format']) ? $options['format'] : '<p>%check% %text%</p>';

        return Html::checkBoxList($element['name'], $checkboxes, $format, $element['value']);
    }
253477
public function telField(IFormModel $model, $property, array $options = [])
    {
        $element = $this->getField($model, $property);
        $options['id'] = $element['id'];

        return Html::telField($element['name'], $element['value'], $options);
    }
173518
public function numberFieldRow(IFormModel $model, $property, array $options = [])
    {
        $element = $this->getField($model, $property);
        $options['id'] = $element['id'];

        return Html::openTag('div', $this->getBlock('block', $options)).
        Html::label($model->getLabel($property), $element['id'], $this->getBlock('label', $options)).
        $this->numberField($model, $property, $options).
        Html::closeTag('div');
    }
1364319
public function buildConstraint($fieldName, Schema $property, DocumentModel $model, array $options)
    {
        if (in_array('array', $property->getType()->getTypes())) {
            foreach ($options as $option) {
                if ($option->name == 'min') {
                    $property->setMinItems(intval($option->value));
                }
                if ($option->name == 'max') {
                    $property->setMaxItems(intval($option->value));
                }
            }
        }

        return $property;
    }
1231576
public function formFor($model, $options, Closure $block = null)
    {
        return (new Logic\FormFor())->render($this, $model, $options, $block);
    }
30430
private function renderProperties(MetadataInterface $metadata, array $options)
    {
        $this->setDefaultValuesOnMetadata($metadata, $options['defaults']);

        $renderedProperties = [];
        foreach (array_keys($metadata->toArray()) as $propertyKey) {
            $propertyValue = $this->propertyAccessor->getValue($metadata, $propertyKey);

            if (null === $propertyValue) {
                continue;
            }

            $this->ensurePropertyIsKnown($metadata, $propertyKey);

            $renderedProperties[] = $this->renderProperty($propertyKey, $propertyValue);
        }

        return $renderedProperties;
    }
112693
public function dateTimeLocalField(IFormModel $model, $property, array $options = [])
    {
        $element = $this->getField($model, $property);
        $options['id'] = $element['id'];

        return Html::datetimeLocalField($element['name'], $element['value'], $options);
    }