<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Field; use ModStart\Core\Dao\ModelUtil; use ModStart\Core\Util\ConvertUtil; use ModStart\Field\Concern\CanCascadeFields; use ModStart\Field\Type\FieldRenderMode; class Radio extends AbstractField { use CanCascadeFields; protected $value = array(); protected function setup() { $this->addVariables(array('options' => array())); } public function options($H02oa) { $this->addVariables(array('options' => $H02oa)); return $this; } public function optionType($c37e9) { return $this->options($c37e9::getList()); } public function optionModel($I1hTb, $kkQsP = 'id', $Zmb65 = 'name') { return $this->options(ModelUtil::valueMap($I1hTb, $kkQsP, $Zmb65)); } public function render() { $this->addCascadeScript(); return parent::render(); } }