Specifications
PA-001011-03-04 Aastra July 2014
283
setEditable() is now replaced by setNotEditable but kept for compatibility reasons (optional)
setPrompt(prompt) to set the default prompt to be displayed for the input.
o prompt string
setDefaultIndex(index) to define the field index the object will use to start (optional)
o index integer, optional, default is 1
setDisplayMode(display) to define the aspect of the display, normal/condensed (optional)
o display enum ("normal, "condensed"), default is "normal".
setInputLanguage(language) to set the language of the input (optional)
o language enum ("English", "French"....)
addField(type) to add an input field and setting its type
o type (IP, string, number, dateUS, timeUS,dateInt, timeInt or empty) if
the type is an empty string then the type is inherited from the main object.
setFieldPassword(password) to set the password mode for the input field, overrides the
value set by setPassword for the field
o password enum ("yes", "no")
setFieldEditable(editable) to set the input field editable mode ('yes', no'), overrides the
value set by setEditable or setNotEditable for the field
o editable enum ("yes", "no")
setFieldParameter(parameter) to set the parameter name to be parsed after the global
input, overrides the value set by setParameter for the field
o parameter string
setFieldPrompt(prompt)to set the prompt to be displayed for the input field, overrides the
value set by setPrompt for the field
o prompt string
setFieldSelection(selection) to set the Selection tag for the field
o selection string
setFieldDefault(default) to set default value for the input field, overrides the value set by
setDefault for the field
o default string
Example
require_once('AastraIPPhoneInputScreen.class.php');
$input = new AastraIPPhoneInputScreen();
$input->setTitle('Restricted application');
$input->setDisplayMode('condensed');
$input->setURL($XML_SERVER);
$input->setDestroyOnExit();
$input->addField(‘empty’);
$input->addField(‘string’);
$input->setFieldSelection('1');
$input->setFieldPrompt('Username:');
$input->setFieldParameter('user');
$input->setFieldSelection('1');
$input->addField(‘number’);