src/Mapper/MysqlMapper.php
protected function filter(array $filter)
    {
        // email
        if(array_key_exists('authEmail', $filter) && strlen($filter['authEmail']) > 0) {
            $this->select->where->like('auth.auth_email', $filter['authEmail'] . '%');
        }
        
        //auth id
        if(array_key_exists('authId', $filter) && $filter['authId'] > 0) {
            $this->select->where(array(
                'history.auth_id = ?' => $filter['authId']
            ));
        }
        
        return $this;
    }
protected function filter(array $filter)
    {
        // email
        if(array_key_exists('authEmail', $filter) && strlen($filter['authEmail']) > 0) {
            $this->select->where->like('auth.auth_email', $filter['authEmail'] . '%');
        }
        
        //auth id
        if(array_key_exists('authId', $filter) && $filter['authId'] > 0) {
            $this->select->where(array(
                'history.auth_id = ?' => $filter['authId']
            ));
        }
        
        return $this;
    }
protected function filter ( array $ filter ) { // email if ( array_key_exists ( 'authEmail' , $ filter ) && strlen ( $ filter [ 'authEmail' ] ) > 0 ) { $ this -> select -> where -> like ( 'auth.auth_email' , $ filter [ 'authEmail' ] . '%' ) ; } //auth id if ( array_key_exists ( 'authId' , $ filter ) && $ filter [ 'authId' ] > 0 ) { $ this -> select -> where ( array ( 'history.auth_id = ?' => $ filter [ 'authId' ] ) ) ; } return $ this ; }
Filters and search

@param array $filter
@return \History\Mapper\MysqlMapper
Filters and search