protected function _toUpdate($mailbox, $type, $data)
    {
        if (!isset($this->_update[$mailbox])) {
            $this->_update[$mailbox] = array(
                'add' => array(),
                'slice' => array()
            );
        }

        $this->_update[$mailbox][$type] = ($type == 'slicemap')
            ? $data
            : array_merge($this->_update[$mailbox][$type], $data);
    }
protected function _toUpdate($mailbox, $type, $data)
    {
        if (!isset($this->_update[$mailbox])) {
            $this->_update[$mailbox] = array(
                'add' => array(),
                'slice' => array()
            );
        }

        $this->_update[$mailbox][$type] = ($type == 'slicemap')
            ? $data
            : array_merge($this->_update[$mailbox][$type], $data);
    }
protected function _toUpdate ( $ mailbox , $ type , $ data ) { if ( ! isset ( $ this -> _update [ $ mailbox ] ) ) { $ this -> _update [ $ mailbox ] = array ( 'add' => array ( ) , 'slice' => array ( ) ) ; } $ this -> _update [ $ mailbox ] [ $ type ] = ( $ type == 'slicemap' ) ? $ data : array_merge ( $ this -> _update [ $ mailbox ] [ $ type ] , $ data ) ; }
Add update entry for a mailbox.

@param string $mailbox  The mailbox.
@param string $type     'add', 'slice', or 'slicemap'.
@param mixed $data      The data to update.
Add update entry for a mailbox .