<?php
/**
* Return a list of available folders
* @package phlyMail Nahariya 4.0+, Branch MessageCenter
* @subpackage Handler Email
* @copyright 2001-2009 phlyLabs, Berlin (http://phlylabs.de)
* @version 0.2.2 2009-11-14
*/
// Only valid within phlyMail
if (!defined('_IN_PHM_')) die();
class email {
public function __construct(&$_PM_, $mode)
{
require_once($_PM_['handler']['path'].'/fs.php');
$this->folders = new email_storage($_SESSION['phM_uid']);
$this->folders->init_folders(('browse' == $mode) ? false : true);
$this->_PM_ = $_PM_;
}
public function get()
{
return $this->folders->read_folders(0);
}
}
?>