本文整理汇总了PHP中AdminHelper::getImageFieldRequirements方法的典型用法代码示例。如果您正苦于以下问题:PHP AdminHelper::getImageFieldRequirements方法的具体用法?PHP AdminHelper::getImageFieldRequirements怎么用?PHP AdminHelper::getImageFieldRequirements使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AdminHelper
的用法示例。
在下文中一共展示了AdminHelper::getImageFieldRequirements方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
}
$list = array('gtcms_load_default' => 'gtcms_load_default') + $list;
$originalValue = (is_array($originalValue) ? $originalValue : array($originalValue)) + array('gtcms_load_default' => 'gtcms_load_default');
$selectedValues = $originalValue;
if (config('gtcms.premium')) {
GtcmsPremium::sortMultiSelectList($selectedValues, $list);
}
$options['id'] = $field->property;
echo Form::hidden($field->property . "_exists_in_gtcms_form", 1);
echo Form::select($field->property . "[]", $list, $selectedValues, $options);
// ----------- IMAGE ------------
} else {
if ($type == 'image') {
$options['class'] = $options['class'] . " fileUpload";
$property = $field->property;
$imageFieldData = AdminHelper::getImageFieldRequirements($modelConfig, $field->property);
$method = "image";
if ($field->displayProperty && $field->displayProperty->method) {
$method = $field->displayProperty->method;
}
?>
@include("gtcms.admin.elements.imageUpload")
<?php
// ----------- FILE ------------
} else {
if ($type == 'file') {
$options['class'] = $options['class'] . " fileUpload";
$property = $field->property;
$method = "file";
if ($field->displayProperty && $field->displayProperty->method) {
$method = $field->displayProperty->method;