Specifications

PA-001011-03-04 Aastra July 2014
273
setCancelAction(uri) to set the cancel parameter with the URI to be called on Cancel
(optional)
o uri string
setDestroyOnExit() to set DestroyonExit parameter to 'yes', 'no' by default (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)
setAllowDrop() to set the allowDrop tag to 'yes' (optional)
setAllowXfer() to set the allowXfer tag to 'yes' (optional)
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.
addLine(text,size,align,color) to add a formatted line
o text string
o size string, optional, "double"
o align string, optional, "left", "right" or "center"
o color string, optional
setScrollStart() to define the beginning of the scrolling section
setScrollEnd() to define the end of the scrolling section
setAllowDTMF() to allow DTMF passthrough on the object
Example
require_once('AastraIPPhoneFormattedTextScreen.class.php');
$ftext = new AastraIPPhoneFormattedTextScreen();
$ftext->setDestroyOnExit();
$ftext->addLine('Formatted Screen','double','center',’red’);
$ftext->setScrollStart();
$ftext->addLine('Scrolled text1');
$ftext->addLine('Scrolled text2');
$ftext->addLine('Scrolled text3');
$ftext->addLine('Scrolled text4');