select.stub 255 B

1234567
  1. public function {%methodName%}($value, $data)
  2. {
  3. $value = $value ? $value : (isset($data['{%field%}']) ? $data['{%field%}'] : '');
  4. $list = $this->{%listMethodName%}();
  5. return isset($list[$value]) ? $list[$value] : '';
  6. }