Specifications
Aastra July 2014 PA-001011-03-04
286
setAllowConf() to set the allowConf tag to 'yes' (optional)
setTimeout(timeout) to define a specific timeout for the XML object (optional)
o timeout integer (seconds)
addSoftkey(index,label,uri) to add custom soktkeys to the object (optional)
o index integer, softkey number
o label string
o uri string
setRefresh(timeout,URL) to add Refresh parameters to the object (optional)
o timeout integer (seconds)
o URL string
setEncodingUTF8() to change encoding from default ISO-8859-1 to UTF-8 (optional)
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.
setDefaultIndex(index) to set the default selection in the list (optional)
o index index (1-30)
setBase(base) to configure the menuItem base URI
o base string
resetBase() to reset the menuItem base URI
addEntry(name,url,selection,icon,dial) to add an element in the list to be displayed
o name string or array(0=>Line1,1=>Line2,2=>Offset,3=>Char,4=>Mode)
o url string
o selection string
o icon integer
o dial string, phone number bto dial
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
setUnitScroll() to set the unitScroll tag to yes which changes the scrolling behavior on the
6739i (optional and 6739i only)
natsortbyname() to order the list, must not be use in conjunction with setBase or resetBase
Example
require_once('AastraIPPhoneTextMenu.class.php');
$menu = new AastraIPPhoneTextMenu();
$menu->setTitle('Title');
$menu->setDestroyOnExit();
$menu->setDeFaultIndex('3');