Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Get a list of Categories
- *
- * @package miniShop
- * @subpackage processors
- */
- class GoodsGetListProcessor extends CatsGetListProcessor {
- public $classKey = 'modResource';
- public $languageTopics = array('resource');
- public $defaultSortField = 'pagetitle';
- public function prepareQueryBeforeCount(xPDOQuery $c) {
- $query = $this->getProperty('query');
- $c->select(array('modResource.id','modResource.pagetitle'));
- $c->where(array(
- 'isfolder' => 1,
- 'template' => 13,
- 'deleted' => 0,
- 'published' => 1
- ));
- if (!empty($query)) {
- $c->where(array(
- 'pagetitle:LIKE' => $query.'%'
- ));
- }
- return $c;
- }
- }
- return 'CatsGetListProcessor';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement