private function sanitize(array $rows)
    {
        $_documentClass = $this->_documentClass;

        if (isset($this->_options[self::ENTRY_SANITIZE]) && $this->_options[self::ENTRY_SANITIZE]) {
            foreach ($rows as $key => $value) {

                if (is_array($value) && isset($value[$_documentClass::ENTRY_ID])) {
                    unset($rows[$key][$_documentClass::ENTRY_ID]);
                }

                if (is_array($value) && isset($value[$_documentClass::ENTRY_REV])) {
                    unset($rows[$key][$_documentClass::ENTRY_REV]);
                }
            }
        }

        return $rows;
    }
private function sanitize(array $rows)
    {
        $_documentClass = $this->_documentClass;

        if (isset($this->_options[self::ENTRY_SANITIZE]) && $this->_options[self::ENTRY_SANITIZE]) {
            foreach ($rows as $key => $value) {

                if (is_array($value) && isset($value[$_documentClass::ENTRY_ID])) {
                    unset($rows[$key][$_documentClass::ENTRY_ID]);
                }

                if (is_array($value) && isset($value[$_documentClass::ENTRY_REV])) {
                    unset($rows[$key][$_documentClass::ENTRY_REV]);
                }
            }
        }

        return $rows;
    }
private function sanitize ( array $ rows ) { $ _documentClass = $ this -> _documentClass ; if ( isset ( $ this -> _options [ self :: ENTRY_SANITIZE ] ) && $ this -> _options [ self :: ENTRY_SANITIZE ] ) { foreach ( $ rows as $ key => $ value ) { if ( is_array ( $ value ) && isset ( $ value [ $ _documentClass :: ENTRY_ID ] ) ) { unset ( $ rows [ $ key ] [ $ _documentClass :: ENTRY_ID ] ) ; } if ( is_array ( $ value ) && isset ( $ value [ $ _documentClass :: ENTRY_REV ] ) ) { unset ( $ rows [ $ key ] [ $ _documentClass :: ENTRY_REV ] ) ; } } } return $ rows ; }
Sanitize the result set rows

This will remove the _id and _rev attributes from the results if the
"sanitize" option is set

@param array $rows - array of rows to be sanitized

@return array - sanitized rows
Sanitize the result set rows