public function getFieldNameByBaseType($base_type)
    {
        $this->getTableInfo();
        $field = null;
        if (isset($this['fields'])) {
            if (isset($this['fields'][$base_type])) {
                $field = $base_type;
            }
            foreach ($this['fields'] as $v) {
                if (isset($v['base_type']) && $v['base_type'] == $base_type) {
                    $field = $v['field_name'];
                    break;
                }
            }
        }
        
        return $field;
    }
public function getFieldNameByBaseType($base_type)
    {
        $this->getTableInfo();
        $field = null;
        if (isset($this['fields'])) {
            if (isset($this['fields'][$base_type])) {
                $field = $base_type;
            }
            foreach ($this['fields'] as $v) {
                if (isset($v['base_type']) && $v['base_type'] == $base_type) {
                    $field = $v['field_name'];
                    break;
                }
            }
        }
        
        return $field;
    }
public function getFieldNameByBaseType ( $ base_type ) { $ this -> getTableInfo ( ) ; $ field = null ; if ( isset ( $ this [ 'fields' ] ) ) { if ( isset ( $ this [ 'fields' ] [ $ base_type ] ) ) { $ field = $ base_type ; } foreach ( $ this [ 'fields' ] as $ v ) { if ( isset ( $ v [ 'base_type' ] ) && $ v [ 'base_type' ] == $ base_type ) { $ field = $ v [ 'field_name' ] ; break ; } } } return $ field ; }
find field name by base_type
@param  string $base_type
@return string
find field name by base_type