Created
March 2, 2013 08:00
-
-
Save Fi1osof/5070120 to your computer and use it in GitHub Desktop.
ShopmodxObjectGetListProcessor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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