Render week field row

@access public

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

@return string
512008
public function weekFieldRow(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->weekField($model, $property, $options).
        Html::closeTag('div');
    }
899206
protected function _daySelect($options, $context)
    {
        $options += [
            'name' => '',
            'val' => null,
            'leadingZeroKey' => true,
            'leadingZeroValue' => false,
            'templateVars' => [],
        ];
        $options['options'] = $this->_generateNumbers(1, 31, $options);

        unset($options['names'], $options['leadingZeroKey'], $options['leadingZeroValue']);

        return $this->_select->render($options, $context);
    }
386117
public function buildConstraint($fieldName, Schema $property, DocumentModel $model, array $options)
    {
        $property->setFormat('email');
        return $property;
    }
468233
protected function _render(array $row, $widths, $options = [])
    {
        if (count($row) === 0) {
            return;
        }

        $out = '';
        foreach (array_values($row) as $i => $column) {
            $pad = $widths[$i] - $this->_cellWidth($column);
            if (!empty($options['style'])) {
                $column = $this->_addStyle($column, $options['style']);
            }
            $out .= '| ' . $column . str_repeat(' ', $pad) . ' ';
        }
        $out .= '|';
        $this->_io->out($out);
    }
814974
public function radioButtonListFieldRow(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->radioButtonListField($model, $property, $options).
        Html::closeTag('div');
    }
1331779
public function urlFieldRow(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->urlField($model, $property, $options).
        Html::closeTag('div');
    }
469287
public function buildConstraint($fieldName, Schema $property, DocumentModel $model, array $options)
    {
        $enumValue = array_reduce(
            $options,
            function ($carry, $option) {
                if ($option->name == 'choices') {
                    return explode('|', $option->value);
                }
            }
        );

        // is this a numeric field? convert values
        if (in_array('integer', $property->getType()->getTypes())) {
            $enumValue = array_map('intval', $enumValue);
        }

        if (is_array($enumValue)) {
            $property->setEnum($enumValue);
        }

        return $property;
    }
1238017
public function Field($properties = array())
    {
        $context = $this;
        $properties['Editable'] = $this->editable;
        $properties['Reservation'] = $this->getReservation();
        $properties['Attendees'] = $this->editable
            ? $this->getEditableAttendees()
            : $this->getReservation()->Attendees();

        if (count($properties)) {
            $context = $context->customise($properties);
        }

        $this->extend('onBeforeRender', $context);

        $result = $context->renderWith($this->getTemplates());

        if (is_string($result)) {
            $result = trim($result);
        } else {
            if ($result instanceof DBField) {
                $result->setValue(trim($result->getValue()));
            }
        }

        return $result;
    }
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');
    }
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);
    }
861752
public static function linkFormat($model, $attribute, $options = [])
    {
        return array_merge([
            'attribute' => $attribute,
            'format' => 'raw',
            'value' => !$model->isNewRecord
                ? Html::a($model->$attribute, ['view', 'id' => $model->primaryKey])
                : function ($data) use ($attribute) {
                    return Html::a($data->$attribute, ['view', 'id' => $data->primaryKey]);
                },
            'visible' => $model->isAttributeSafe($attribute),
        ], $options);
    }
1137694
public function listBoxField(IFormModel $model, $property, array $options = [])
    {
        $element = $this->getField($model, $property);
        $options['id'] = $element['id'];
        $options['selected'] = $element['value'];

        if (empty($options['size'])) {
            $options['size'] = 3;
        }

        return Html::listBox($element['name'], $this->getBlock('elements', $options), $options);
    }
1195853
public function radioButtonListField(IFormModel $model, $property, array $options = [])
    {
        $element = $this->getField($model, $property);
        $radios = !empty($options['radios']) ? $options['radios'] : [];
        $format = !empty($options['format']) ? $options['format'] : '<p>%radio% %text%</p>';

        return Html::radioButtonList($element['name'], $radios, $format, $element['value']);
    }
976313
public function listBoxFieldRow(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->listBoxField($model, $property, $options).
        Html::closeTag('div');
    }
673075
protected function _renderDisplayView($options, $data = [], $returnRaw = false)
    {
        if (array_key_exists('repeated_view', $options) && $options['repeated_view']) {
            return $this->_renderRepeatedDisplayView($options, $data);
        } elseif ($displayView = $this->displayViewOptions($options)) {
            $viewData = [$this->_renderDataName => $data, 'data' => $data];
            $viewData = is_array($data) ? $data + $viewData : $viewData;
            return View::make($displayView, $viewData)->render();
        } elseif ($returnRaw) {
            return (string) $data;
        } else {
            return $this->_renderDisplayViewNotFoundError();
        }
    }
1213397
public function renderValueReader($property): string
    {
        if ($property instanceof VirtualPropertyMetadata) {
            $accessor = \sprintf('$object->%s()', $property->name);
        } elseif (null !== $property->getter) {
            $accessor = \sprintf('$object->%s()', $property->getter);
        } elseif ($property->reflection->isPublic()) {
            $accessor = \sprintf('$object->%s', $property->name);
        } else {
            $accessor = \sprintf('$this->classMetadata->propertyMetadata[\'%s\']->reflection->getValue($object)', $property->name);
        }

        return \strtr(self::$propertyReadTemplate, [
            '{propertyName}' => $property->name,
            '{accessor}' => $accessor,
            '{exposure}' => $this->createValueExposure($property),
        ]);
    }
754840
public function fileFieldRow(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->fileField($model, $property, $options).
        Html::closeTag('div');
    }