setTitle('Title'); # $text->setText('Text to be displayed.'); # $text->setDestroyOnExit(); # $text->addSoftkey('1','Label 1','http://myserver.com/script.php?action=1'); # $text->addSoftkey('6','Exit','SoftKey:Exit'); # $text->output(); # ################################################################################################### require_once('AastraIPPhone.class.php'); class AastraIPPhoneTextScreen extends AastraIPPhone { var $_text; function setText($text) { $this->_text = $text; } function render() { $title = $this->escape($this->_title); $text = $this->escape($this->_text); $out = ''; $out .= "_destroyOnExit == 'yes') $out .= " destroyOnExit=\"yes\""; if($this->_beep=='yes') $out .= " Beep=\"yes\""; $out .= ">\n"; $out .= "{$title}\n"; $out .= "{$text}\n"; foreach ($this->_softkeys as $softkey) $out .= $softkey->render(); $out .= "\n"; return $out; } } ?>