Specifications

Aastra July 2014 PA-001011-03-04
292
speedURL: If this field is present, a "+Speed" Softkey will be shown in zoom mode.
Selected number will be passed in $selection variable.
Example: speedURL=http://xmlserver/xml/speed/speed.php?action=add&name=Peter
Inherited from AastraIPPhoneScrollableTextMenu
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
setEntries(entries) Set entries of the list by an 2 dim array. Inner array field names: 'name',
'url', 'selection', 'icon', 'dial'
verifyCookie(cookie) Verifies if the cookie of the HTTP requests matches the cookie of the
saved context.
setBackURI(URI) Set the cancel parameter with the URI to be called on Cancel or Back
Softkey (optional)
setBackKeyPosition(position) Set position of Back Softkey. Default is 3.
setNextKeyPosition(position) Set position of Back Softkey. Default is 4.
setPreviousKeyPosition(position) Set position of Back Softkey. Default is 5.
setExitKeyPosition(position) Set position of Back Softkey. Default is 6.
setSelectKeyPosition(position) Set position of Back Softkey. Default is 1.
setNextKeyIcon(icon) Set icon of Next Softkey. Default is Icon:TailArrowDown. Set NULL
to disable icon.
setPreviousKeyIcon(icon) Set icon of Previous Softkey. Default is Icon:TailArrowUp. Set
NULL to disable icon.
disableExitKey() Disable the Exit Softkey
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)
addIcon(index,icon) to add custom icons to the object (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
Examples
require_once(‘AastraIPPhoneScrollableDirectory.class.php’)
$records[0]['name'] = "Smith";
$records[0]['firstname'] = "Lisa";
$records[0]['office'] = "+1 (0) 555-123-4321";
$records[0]['officeDigits'] = "4321";
$records[0]['mobile'] = "079 555 12 34";
# ... add as many entries you want
$records[99]['name'] = "Miller";
$records[99]['firstname'] = "Bob";