Joining stuff, the hard way
The Weird and The Wonderful
3
Posts
2
Posters
0
Views
1
Watching
-
I guess you come across things such as there rather a lot, but I'm still O_o at it :)
if ( count( $this->m_query->sortkeys ) > 0 ) {
$psort = '';
$porder = '';
$first = true;foreach ( $this->m\_query->sortkeys as $sortkey => $order ) { if ( $first ) { $first = false; } else { $psort .= ','; $porder .= ','; } $psort .= $sortkey; $porder .= $order; } if ( ( $psort != '' ) || ( $porder != 'ASC' ) ) { // do not mention default sort (main column, ascending) $params\['sort'\] = $psort; $params\['order'\] = $porder; }
}
-
I guess you come across things such as there rather a lot, but I'm still O_o at it :)
if ( count( $this->m_query->sortkeys ) > 0 ) {
$psort = '';
$porder = '';
$first = true;foreach ( $this->m\_query->sortkeys as $sortkey => $order ) { if ( $first ) { $first = false; } else { $psort .= ','; $porder .= ','; } $psort .= $sortkey; $porder .= $order; } if ( ( $psort != '' ) || ( $porder != 'ASC' ) ) { // do not mention default sort (main column, ascending) $params\['sort'\] = $psort; $params\['order'\] = $porder; }
}
Is that Perl?
-
Is that Perl?