Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision da6886c7

Von Kivitendo Admin vor mehr als 9 Jahren hinzugefügt

  • ID da6886c7414e70c17fe1f3273358a69e4dd2e118
  • Vorgänger 6da6d948
  • Nachfolger 51264c43

Typos in Doku

Unterschiede anzeigen:

SL/DB/Helper/Sorted.pm
122 122
Evaluates C<$params{sort_by}> and C<$params{sort_dir}> and returns an
123 123
SQL string suitable for sorting. The package this package is mixed
124 124
into has to provide a method L</_sort_spec> that returns a hash whose
125
structure is explained below. That hash is authoritive in which
125
structure is explained below. That hash is authoritative in which
126 126
columns may be sorted, which column to sort by by default and how to
127 127
handle C<NULL> values.
128 128

  
......
173 173
               customer_name           => 'lower(customer.name)',
174 174
             },
175 175

  
176
If sorting by a column is requested that is not a key in this hash
176
If sorting is requested for a column that is not a key in this hash
177 177
then the default column name will be used.
178 178

  
179 179
The value can be either a scalar or an array reference. If it's the
......
196 196
will be sorted. If undefined then the decision is left to the
197 197
database.
198 198

  
199
If it is a scalar then all the same value will be used for all
199
If it is a scalar then the same value will be used for all
200 200
classes. The value is either C<FIRST> or C<LAST>.
201 201

  
202 202
If it is a hash reference then its keys are column names (not SQL
203 203
names). The values are either C<FIRST> or C<LAST>. If a column name is
204
not found in this hash then the special keu C<default> will be looked
204
not found in this hash then the special key C<default> will be looked
205 205
up and used if it is found.
206 206

  
207 207
Example:

Auch abrufbar als: Unified diff