original_string: protected function _loadSliceMap($mailbox, $uidvalid = null)
      {
          if (!isset($this->_slicemap[$mailbox]) &&
              (($data = $this->_cache->get($this->_getCid($mailbox, 'slicemap'), 0)) !== false)) {
              try {
                  if (($slice = @unserialize($data)) &&
                      is_array($slice)) {
                      $this->_slicemap[$mailbox] = $slice;
                  }
              } catch (Exception $e) {}
          }
  
          if (isset($this->_slicemap[$mailbox])) {
              $ptr = &$this->_slicemap[$mailbox];
              if (is_null($ptr['d']['uidvalid'])) {
                  $ptr['d']['uidvalid'] = $uidvalid;
                  return;
              } elseif (!is_null($uidvalid) &&
                        ($ptr['d']['uidvalid'] != $uidvalid)) {
                  $this->_deleteMailbox($mailbox);
              } else {
                  return;
              }
          }
  
          $this->_slicemap[$mailbox] = array(
              // Tracking count for purposes of determining slices
              'c' => 0,
              // Metadata storage
              // By default includes UIDVALIDITY of mailbox.
              'd' => array('uidvalid' => $uidvalid),
              // The ID of the last slice.
              'i' => 0,
              // The slice list.
              's' => array()
          );
      }
code: protected function _loadSliceMap($mailbox, $uidvalid = null)
      {
          if (!isset($this->_slicemap[$mailbox]) &&
              (($data = $this->_cache->get($this->_getCid($mailbox, 'slicemap'), 0)) !== false)) {
              try {
                  if (($slice = @unserialize($data)) &&
                      is_array($slice)) {
                      $this->_slicemap[$mailbox] = $slice;
                  }
              } catch (Exception $e) {}
          }
  
          if (isset($this->_slicemap[$mailbox])) {
              $ptr = &$this->_slicemap[$mailbox];
              if (is_null($ptr['d']['uidvalid'])) {
                  $ptr['d']['uidvalid'] = $uidvalid;
                  return;
              } elseif (!is_null($uidvalid) &&
                        ($ptr['d']['uidvalid'] != $uidvalid)) {
                  $this->_deleteMailbox($mailbox);
              } else {
                  return;
              }
          }
  
          $this->_slicemap[$mailbox] = array(
              // Tracking count for purposes of determining slices
              'c' => 0,
              // Metadata storage
              // By default includes UIDVALIDITY of mailbox.
              'd' => array('uidvalid' => $uidvalid),
              // The ID of the last slice.
              'i' => 0,
              // The slice list.
              's' => array()
          );
      }
code_tokens: protected function _loadSliceMap ( $ mailbox , $ uidvalid = null ) { if ( ! isset ( $ this -> _slicemap [ $ mailbox ] ) && ( ( $ data = $ this -> _cache -> get ( $ this -> _getCid ( $ mailbox , 'slicemap' ) , 0 ) ) !== false ) ) { try { if ( ( $ slice = @ unserialize ( $ data ) ) && is_array ( $ slice ) ) { $ this -> _slicemap [ $ mailbox ] = $ slice ; } } catch ( Exception $ e ) { } } if ( isset ( $ this -> _slicemap [ $ mailbox ] ) ) { $ ptr = & $ this -> _slicemap [ $ mailbox ] ; if ( is_null ( $ ptr [ 'd' ] [ 'uidvalid' ] ) ) { $ ptr [ 'd' ] [ 'uidvalid' ] = $ uidvalid ; return ; } elseif ( ! is_null ( $ uidvalid ) && ( $ ptr [ 'd' ] [ 'uidvalid' ] != $ uidvalid ) ) { $ this -> _deleteMailbox ( $ mailbox ) ; } else { return ; } } $ this -> _slicemap [ $ mailbox ] = array ( // Tracking count for purposes of determining slices 'c' => 0 , // Metadata storage // By default includes UIDVALIDITY of mailbox. 'd' => array ( 'uidvalid' => $ uidvalid ) , // The ID of the last slice. 'i' => 0 , // The slice list. 's' => array ( ) ) ; }
docstring: Load the slicemap for a given mailbox.  The slicemap contains
  the uidvalidity information, the UIDs->slice lookup table, and any
  metadata that needs to be saved for the mailbox.
  
  @param string $mailbox    The mailbox.
  @param integer $uidvalid  The IMAP uidvalidity value of the mailbox.
docstring_tokens: Load the slicemap for a given mailbox . The slicemap contains the uidvalidity information the UIDs - > slice lookup table and any metadata that needs to be saved for the mailbox .