Skip to content

Instantly share code, notes, and snippets.

@ss23
Created August 8, 2013 07:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ss23/6182417 to your computer and use it in GitHub Desktop.
Save ss23/6182417 to your computer and use it in GitHub Desktop.
<?php
$list = DataList::create('Page');
$list = $list->filter('ClassName', 'Page');
$dtaQuery = $list->dataQuery();
$sqlQuery = $dtaQuery->getFinalisedQuery();
singleton('Page')->extend('augmentSQL',$sqlQuery,$dtaQuery);
$total = $list->count();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment