Specifications

Aastra July 2014 PA-001011-03-04
270
generate() to return the generated XML for the object
output(flush) to display the object
o flush boolean optional, output buffer to be flushed out or not.
addEntry(name,number,date,time,selection,duration,type,terminal,count,line)
o name string (optional)
o number string
o date string MM-DD-YYYY
o time string HH:MM (military time)
o selection string (optional)
o duration integer call duration in seconds (optional)
o type string call type (incoming/outgoung/missed) (optional)
o terminal string terminal type (office/mobile/home) (optional)
o count integer number of calls (optional)
o line integer line used (1-9) (optional)
setScrollConstrain() to avoid the list to wrap
setScrollUp(uri) to set the URI to be called when the user presses the Up arrow (optional)
o uri string
setScrollDown(uri) to set the URI to be called when the user presses the Down arrow
(optional)
o uri string
setDeleteUri(uri) to configure the uri called by the "Delete" button (optional)
o uri string
setDeleteAllUri(uri) to configure the uri called by the "Delete ALL" button (optional)
o uri string
setDialUri(uri) to configure the uri called by the "Dial" button (optional)
o uri string
setAddUri(uri) to configure the uri called by the "Add to directory" button(optional)
o uri string
Example
require_once('AastraIPPhoneCallLog.class.php');
$object = new AastraIPPhoneCallLog();
$object->setTopTitle('Callers List','','1');
$object->setDestroyOnExit();
$object->setCancelAction($XML_SERVER);
$object->addEntry('John Doe','972-555-2345','01-01-
2012','15:28','1','60','incoming','mobile','','1');
$object->addEntry('Jane Doe','408-555-1234','01-05-
2011','10:01','2','','missed','home','2','1');
$object->setAddUri('http://myserver/myscript.php?action=add');
$object->addIcon('1', 'Icon:Book');