Example #1
0
 /** {@inheritdoc} */
 public function where($filters)
 {
     parent::where($filters);
     if (isset($filters['Type'])) {
         $this->_select->where(array('install' => $filters['Type']));
     }
 }
Example #2
0
 /** {@inheritdoc} */
 public function order($order, $direction)
 {
     parent::order($order, $direction);
     if (key($this->_select->getRawState(\Zend\Db\Sql\Select::ORDER)) == 'registry.name') {
         // Since there can be multiple instances of Value, provide secondary
         // ordering by data
         $this->_select->order(array('registry.regvalue' => $direction));
     }
 }