public function getDocuments($type, $filters = false, $groupByParent = false) { /* * Apply filters. */ $query = new Solarium_Query_Select(); $query->setRows(100); $this->_applyFilterQueries($query, $filters); /* * Construct Mage objects and optionally group them. */ return $this->_constructMageObjects($this->getClient()->select($query), $type, $groupByParent); }
public function testSetAndGetRows() { $this->_query->setRows(100); $this->assertEquals(100, $this->_query->getRows()); }