Specifications
Aastra July 2014 PA-001011-03-04
290
setSelectKeyLabel(label) Set the label of the Select Softkey. Default is 'Select'. Make sure
the string is in language.ini.
setCancelAction(uri) to set the cancel parameter with the URI to be called on Cancel or
Back Softkey (optional)
output() to display the object
addEntry(name,url,selection,icon,dial) to add an element in the list to be displayed
natsortbyname() to order the list
setTitle(Title) to setup the title of an object (optional)
setTitleWrap() to set the title to be wrapped on 2 lines (optional)
setTopTitle(title,color,icon_index) to set the Top Title of the XML screen (6739i only)
o title string
o color string, "red", "blue", ... (optional)
o icon_index integer, icon number
setDestroyOnExit() to set DestroyOnExit parameter to "yes" (optional)
setBeep() to enable a notification beep with the object (optional)
setLockIn(uri) to set the Lock-in tag to 'yes' and the GoodbyeLockInURI (optional)
o uri string, GoodByeLockInURI
setAllowAnswer() to set the allowAnswer tag to 'yes' (optional)
setTimeout(timeout) to define a specific timeout for the XML object (optional)
addSoftkey(index,label,uri,icon_index) to add custom softkeys to the object (optional)
setRefresh(timeout,URL) to add Refresh parameters to the object (optional)
generate() to return the object content
setDefaultIndex(index) to set the default selection in the list (optional)
setStyle(style) to set the style of the list numbered/none/radio (optional)
setWrapList() to allow 2 lines items (optional)
Examples
require_once(‘AastraIPPhoneScrollableTextMenu.class.php’)
$menu = new AastraIPPhoneScrollableTextMenu();
$menu->setTitle('My Menu');
$menu->addEntry('Choice 1', $XML_SERVER."?choice=1", '1');
# ... add as many entries you want
$menu->addEntry('Choice 100', $XML_SERVER."?choice=100", '100');
$menu->output();
And
require_once(‘AastraIPPhoneScrollableTextMenu.class.php’)
$entries[0]['name'] = "Choice 1";
$entries[0]['url'] = $XML_SERVER."?choice=1";
$entries[0]['selection'] = "1";
# ... add as many entries you want
$entries[99]['name'] = "Choice 100";
$entries[99]['url'] = $XML_SERVER."?choice=100";