select.stub 263 字节

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