listFolders() public method

Retrieves a list of mailboxes from the server.
public listFolders ( ) : array
return array The list of mailboxes.
Ejemplo n.º 1
0
 /**
  * Retrieves a list of mailboxes from the server.
  *
  * @return array The list of mailboxes.
  */
 public function listFolders()
 {
     $this->_timer->push();
     $result = parent::listFolders();
     $this->_logger->debug(sprintf('REQUEST OUT IMAP: %s ms [listFolders]', floor($this->_timer->pop() * 1000)));
     return $result;
 }
Ejemplo n.º 2
0
 /**
  * Retrieves a list of mailboxes from the server.
  *
  * @return array The list of mailboxes.
  */
 public function listFolders()
 {
     $this->_logger->debug(sprintf('Driver "%s": Listing folders.', $this->getDriverName()));
     $result = parent::listFolders();
     $this->_logger->debug(sprintf('Driver "%s": List contained %s folders.', $this->getDriverName(), count($result)));
     return $result;
 }