/** * @param StickyRequest $request */ public function setupAutomaticSorting(StickyRequest $request = null) { // First, we check to see if there are any sortable attributes we can add to the // auto sort columns. if (is_callable(array($this->getAttributeKeyClassName(), 'getList'))) { $l = call_user_func(array($this->getAttributeKeyClassName(), 'getList')); foreach ($l as $ak) { $this->autoSortColumns[] = 'ak_' . $ak->getAttributeKeyHandle(); } } parent::setupAutomaticSorting(); }
public function deliverQueryObject() { if (!isset($this->parent)) { $filesystem = new Filesystem(); $this->parent = $filesystem->getRootFolder(); } $this->query->andWhere('n.treeNodeParentID = :treeNodeParentID'); $this->query->setParameter('treeNodeParentID', $this->parent->getTreeNodeID()); return parent::deliverQueryObject(); }