aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Bottomley <JBottomley@Parallels.com>2013-04-28 00:19:04 -0700
committerJames Bottomley <JBottomley@Parallels.com>2013-04-28 00:19:04 -0700
commit585d9be17db4e7711cf95146b663b6338df68b29 (patch)
treed9cf4f6b812410e734729425994fe212eefd3f96
parentc1468982ca9a1933c34760cc693f4887c8f8cce1 (diff)
downloadasterisk-aastra-585d9be17db4e7711cf95146b663b6338df68b29.tar.gz
AastraIPPhoneTextMenu: Add some missing elements
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
-rw-r--r--include/AastraIPPhoneTextMenu.class.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/AastraIPPhoneTextMenu.class.php b/include/AastraIPPhoneTextMenu.class.php
index a346d26..1d4995e 100644
--- a/include/AastraIPPhoneTextMenu.class.php
+++ b/include/AastraIPPhoneTextMenu.class.php
@@ -101,6 +101,9 @@ class AastraIPPhoneTextMenu extends AastraIPPhone {
var $_maxitems='30';
var $_scrollConstrain='';
var $_numberLaunch='';
+ var $_scrollUp='';
+ var $_scrollDown='';
+ var $_unitScroll='';
function setDefaultIndex($defaultIndex)
{
@@ -117,6 +120,21 @@ class AastraIPPhoneTextMenu extends AastraIPPhone {
$this->_entries[] = new AastraIPPhoneTextMenuEntry($name, $url, $selection, $icon, $dial, $line, NULL);
}
+ function setScrollUp($uri)
+ {
+ $this->_scrollUp = $uri;
+ }
+
+ function setScrollDown($uri)
+ {
+ $this->_scrollDown = $uri;
+ }
+
+ function setUnitScroll()
+ {
+ $this->_unitScroll = 'yes';
+ }
+
function setBase($base)
{
$this->_entries[] = new AastraIPPhoneTextMenuEntry(NULL, NULL, NULL, NULL, NULL, NULL, $base);
@@ -193,6 +211,13 @@ class AastraIPPhoneTextMenu extends AastraIPPhone {
# AllowConf
if ($this->_allowConf == 'yes') $out .= " allowConf=\"yes\"";
+ # UnitScroll
+ if ($this->_unitScroll == 'yes') $out .= " unitScroll=\"yes\"";
+
+ # Scrolls up/down
+ if($this->_scrollUp!='') $out .= " scrollUp=\"".$this->escape($this->_scrollUp)."\"";
+ if($this->_scrollDown!='') $out .= " scrollDown=\"".$this->escape($this->_scrollDown)."\"";
+
# Timeout
if ($this->_timeout!=0) $out .= " Timeout=\"{$this->_timeout}\"";