Skip to content

Instantly share code, notes, and snippets.

@Fi1osof
Created March 2, 2013 08:00
Show Gist options
  • 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