/** {@inheritdoc} */ public function where($filters) { parent::where($filters); if (isset($filters['Type'])) { $this->_select->where(array('install' => $filters['Type'])); } }
/** {@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)); } }