DiverseYouthNightSchool/application/admin/command/Crud/stubs/mixins/radio.stub

7 lines
255 B
Plaintext

public function {%methodName%}($value, $data)
{
$value = $value ? $value : (isset($data['{%field%}']) ? $data['{%field%}'] : '');
$list = $this->{%listMethodName%}();
return isset($list[$value]) ? $list[$value] : '';
}