Skip to content

Instantly share code, notes, and snippets.

@jmertic
Created May 17, 2011 20:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jmertic/977301 to your computer and use it in GitHub Desktop.
Save jmertic/977301 to your computer and use it in GitHub Desktop.
<?php
function process()
{
// Custom SQL
$lvsParams = array(
'custom_select' => ',calls.id AS call_id',
'custom_from' => ' LEFT JOIN calls ON calls.parent_id = accounts.id',
'custom_where' => ' AND (calls.id IS NULL)',
'distinct' => true
);
// Newest accounts are listed at top
$lvsParams['overrideOrder'] = true;
$lvsParams['orderBy'] = 'date_entered';
$lvsParams['sortOrder'] = 'DESC';
parent::process($lvsParams);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment