/** * @access private * @return Array */ function &_getPop3Uids() { if (is_null($this->_pop3Uids)) { if (USE_UIDL_CACHE_FILE) { $_stat = $this->_pop3Mail->_stats(); if ($_stat) { $file_prefix = 'cache_'; $tempFiles =& CTempFiles::CreateInstance($this->Account); $_stat = implode('|', $_stat); if (isset($_SESSION['pop3UidsHash']) && md5($_stat) == $_SESSION['pop3UidsHash'] && $tempFiles->IsFileExist($file_prefix . $_SESSION['pop3UidsHash'])) { $this->_pop3Uids = unserialize($tempFiles->LoadFile($file_prefix . $_SESSION['pop3UidsHash'])); } if (is_null($this->_pop3Uids)) { $this->_pop3Uids = $this->_pop3Mail->uidl(); $_SESSION['pop3UidsHash'] = md5($_stat); $tempFiles->SaveFile($file_prefix . $_SESSION['pop3UidsHash'], serialize($this->_pop3Uids)); } unset($tempFiles); } } else { $this->_pop3Uids = $this->_pop3Mail->uidl(); } } return $this->_pop3Uids; }
/** * @access private * @return Array */ function &_getPop3Uids() { if (is_null($this->_pop3Uids)) { $this->_pop3Uids = $this->_pop3Mail->uidl(); } $uids =& $this->_pop3Uids; return $uids; }