2.1.0 version.
This commit is contained in:
40
php_classes/AastraIPPhoneInputScreenEntry.class.php
Normal file
40
php_classes/AastraIPPhoneInputScreenEntry.class.php
Normal file
@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
################################################################################
|
||||
# Aastra XML API Classes - AastraIPPhoneInputScreenEntry
|
||||
# Copyright Aastra Telecom 2007
|
||||
#
|
||||
# Internal class for AastraIPPhoneInputScreen object.
|
||||
################################################################################
|
||||
|
||||
class AastraIPPhoneInputScreenEntry {
|
||||
var $_type='';
|
||||
var $_password='';
|
||||
var $_editable='';
|
||||
var $_parameter='';
|
||||
var $_prompt='';
|
||||
var $_default='';
|
||||
var $_softkeys;
|
||||
|
||||
function AastraIPPhoneInputScreenEntry($type)
|
||||
{
|
||||
$this->_type = $type;
|
||||
$this->_softkeys = array();
|
||||
}
|
||||
|
||||
function render()
|
||||
{
|
||||
$xml = "<InputField";
|
||||
if($this->_type != '') $xml .= " type=\"".$this->_type."\"";
|
||||
if($this->_password != '') $xml .= " password=\"".$this->_password."\"";
|
||||
if($this->_editable != '') $xml .= " editable=\"".$this->_editable."\"";
|
||||
$xml .= ">\n";
|
||||
if($this->_prompt != '') $xml .= "<Prompt>".$this->_prompt."</Prompt>\n";
|
||||
if($this->_parameter != '') $xml .= "<Parameter>".$this->_parameter."</Parameter>\n";
|
||||
if($this->_default != '') $xml .= "<Default>".$this->_default."</Default>\n";
|
||||
foreach ($this->_softkeys as $softkey) $xml .= $softkey->render();
|
||||
$xml .= "</InputField>\n";
|
||||
return($xml);
|
||||
}
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user