Skip to content

Instantly share code, notes, and snippets.

@skord
Created March 27, 2012 18:17
Show Gist options
  • Select an option

  • Save skord/2218635 to your computer and use it in GitHub Desktop.

Select an option

Save skord/2218635 to your computer and use it in GitHub Desktop.
killsort
$list->setOrdered(true);
if (isset($_GET['allkills']) && $_GET['allkills'] == 0 ) {
$list->setAPIKill();
$list->setOrderBy(' kll.kll_external_id ASC ');
} else {
$list->setOrderBy(' kll.kll_id ASC ');
}
if (isset($_GET['limit'])) {
$list->setLimit(min($maxkillsreturned, (int)$_GET['limit']));
} else {
$list->setLimit($maxkillsreturned);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment