4.0.0 SP1 version.

This commit is contained in:
2018-02-15 23:16:10 +01:00
parent 8fc8fc9b51
commit fc521a47e0
7 changed files with 9400 additions and 10462 deletions

View File

@ -66,6 +66,9 @@
# @uri string
# setScrollRight(uri) to set the URI to be called when the user presses the Right arrow (optional)
# @uri string
# setDial(number,line) to set the number to be dialed as well as the line to use when going off-hook or with the custom softkey Softkey::Dial2
# @number string
# @line integer (optional)
#
# Example
# require_once('AastraIPPhoneFormattedTextScreen.class.php');
@ -97,6 +100,8 @@ class AastraIPPhoneFormattedTextScreen extends AastraIPPhone {
var $_scrollDown='';
var $_scrollLeft='';
var $_scrollRight='';
var $_dialNumber='';
var $_dialLine='';
function addLine($text, $size=NULL, $align=NULL, $color=NULL)
{
@ -149,6 +154,12 @@ class AastraIPPhoneFormattedTextScreen extends AastraIPPhone {
$this->_scrollRight = $uri;
}
function setDial($dialNumber,$dialLine='')
{
$this->_dialNumber = $dialNumber;
$this->_dialLine = $dialLine;
}
function render()
{
# Beginning of root tag
@ -223,6 +234,15 @@ class AastraIPPhoneFormattedTextScreen extends AastraIPPhone {
foreach ($this->_entries as $entry) $out .= $entry->render();
}
# Dial
if ($this->_dialNumber!='')
{
$dialNumber = $this->escape($this->_dialNumber);
$out .= "<Dial";
if ($this->_dialLine!='') $out .= " line=\"{$this->_dialLine}\"";
$out .= ">".$dialNumber."</Dial>\n";
}
# Softkeys
if (isset($this->_softkeys) && is_array($this->_softkeys))
{

View File

@ -59,6 +59,9 @@
# @uri string
# setScrollRight(uri) to set the URI to be called when the user presses the Right arrow (optional)
# @uri string
# setDial(number,line) to set the number to be dialed as well as the line to use when going off-hook or with the custom softkey Softkey::Dial2
# @number string
# @line integer (optional)
#
# Example
# require_once('AastraIPPhoneTextScreen.class.php');
@ -83,6 +86,8 @@ class AastraIPPhoneTextScreen extends AastraIPPhone {
var $_scrollDown='';
var $_scrollLeft='';
var $_scrollRight='';
var $_dialNumber='';
var $_dialLine='';
function setDoneAction($uri)
{
@ -128,6 +133,12 @@ class AastraIPPhoneTextScreen extends AastraIPPhone {
}
}
function setDial($dialNumber,$dialLine='')
{
$this->_dialNumber = $dialNumber;
$this->_dialLine = $dialLine;
}
function render()
{
# Beginning of root tag
@ -212,6 +223,15 @@ class AastraIPPhoneTextScreen extends AastraIPPhone {
foreach ($this->_entries as $entry) $out .= $entry->render();
}
# Dial
if ($this->_dialNumber!='')
{
$dialNumber = $this->escape($this->_dialNumber);
$out .= "<Dial";
if ($this->_dialLine!='') $out .= " line=\"{$this->_dialLine}\"";
$out .= ">".$dialNumber."</Dial>\n";
}
# Softkeys
if (isset($this->_softkeys) && is_array($this->_softkeys))
{