示例#1
0
文件: Read.php 项目: RonXS/Solento
 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);
 }
示例#2
0
 public function testSetAndGetRows()
 {
     $this->_query->setRows(100);
     $this->assertEquals(100, $this->_query->getRows());
 }