$base_folders = Hylax::getBaseFolders();
/* Get the list of faxes in folder. */
-$folder_list = $hylax_storage->listFaxes($folder);
+$folder_list = $hylax->storage->listFaxes($folder);
/* Set up URLs which will be used in the list. */
$view_url = Horde::applicationUrl('view.php');
public function __construct($params)
{
- parent::Hylax_Driver($params);
+ parent::__construct($params);
$this->_states = Hylax::getStates();
$this->_stat_cols = Hylax::getStatCols();
//return count($outbox);
}
- public function getInbox()
- {
- return $this->_getFolder('inbox');
- }
-
- public function _getFolder($folder, $path = null)
+ public function getFolder($folder, $path = null)
{
switch ($folder) {
case 'inbox':
public function __construct($params)
{
- parent::Hylax_Driver($params);
+ parent::__construct($params);
$this->_states = Hylax::getStates();
$this->_stat_cols = Hylax::getStatCols();
//return count($outbox);
}
- public function getInbox()
- {
- // return $this->_getFolder('inbox');
- }
-
- protected function _getFolder($folder, $path = null)
+ public function getFolder($folder, $path = null)
{
+ // FIXME: This method is intended to return an array of items in the
+ // specified folder.
+ // Need to figure out how to make this work with SpanDSP.
switch ($folder) {
case 'inbox':
- // return $this->_parseFaxStat($this->_exec('faxstat -r'));
+ return array();
break;
case 'outbox':
- // return $this->_parseFaxStat($this->_exec('faxstat -s'));
+ return array();
break;
case 'sent':
- // return $this->_parseFaxStat($this->_exec('faxstat -d'));
+ return array();
break;
case 'archive':
//return $GLOBALS['storage']->getFolder($path);
+ return array();
break;
}
}
$hylax = new Hylax_Application(array('init' => true));
$fmt_inbox = array();
-$inbox = $hylax->gateway->getInbox();
+$inbox = $hylax->gateway->getFolder('inbox');
foreach ($inbox as $item) {
$fmt_inbox[] = array('owner' => $item[2]);
}
$fmt_outbox = array();
-//$outbox = $fax->getOutbox();
+$outbox = $hylax->gateway->getFolder('outbox');
foreach ($outbox as $item) {
$fmt_outbox[] = array(//'time' => $item
'owner' => $item[2],