Skip to content

Instantly share code, notes, and snippets.

@Fi1osof
Created March 2, 2013 08:00
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 Fi1osof/5070120 to your computer and use it in GitHub Desktop.
Save Fi1osof/5070120 to your computer and use it in GitHub Desktop.
ShopmodxObjectGetListProcessor
<?php
abstract class ShopmodxObjectGetListProcessor extends modObjectGetListProcessor{
function prepareQueryBeforeCount(xPDOQuery $c) {
$this->addDerivativeCriteria($c);
return parent::prepareQueryBeforeCount($c);
}
protected function addDerivativeCriteria(xPDOQuery $c){
$this->modx->addDerivativeCriteria($this->classKey, $c);
return $c;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment