Specifications

Aastra July 2014 PA-001011-03-04
194
mode Optional padding mode (“left”, “right”, “center”), “left” is the default value.
Examples
2 lines left justified with double size icon
format_line(‘Line 1’,’Line 2’,’none’,2,’ ‘);
generated with the ‘envelope’ icon.
1 line centered with -‘ padding
format_line(‘Line 1’,’’,’none’,0,’-,’center’);
PHP SDK
This function has been embedded in the XML SDK (fully described in chapter 13) within the
AastraIPPhoneTextMenu constructor.
The method addEntry now supports an array for the menu item prompt parameter with
0=>Line1
1=>Line2
2=>Offset
3=>Padding character
4=>Mode
Example with the PHP SDK
require_once('AastraIPPhoneTextMenu.class.php');
$menu = new AastraIPPhoneTextMenu();
$menu->setTitle('Title');
$menu->setDestroyOnExit();
$menu->setWrapList();
$menu->setStyle('none');
$menu->addEntry(
array( 'John Doe',
'12/22/09 at 2:23 PM',
2,
' '
,'left'),
'http://myserver.com/script.php?choice=1',
'',
'1');
$menu->addEntry(
array( 'John Doe',
'11/22/09 at 1:23 PM',
2,
' '
,'left'),
'http://myserver.com/script.php?choice=2',
'',
'1');
$menu->addSoftkey('1', 'Select', 'SoftKey:Select');
$menu->addSoftkey('6', 'Exit', 'SoftKey:Exit');
$menu->addIcon('1', 'Icon:Envelope');