HAWHAW

PHP

Class HAW_phone

HAW_phone

public class HAW_phone

This class provides a phone number in a HAW_deck object. If supported by their mobile device, users can establish a voice connection to the specified number.

Examples:

$myPage = new HAW_deck(...);
...
$myPhone = new HAW_phone("123-45678", "CALL");
$myPage->add_phone($myPhone);

See Also:
HAW_deck

Constructor Summary
HAW_phone(var $phone_number, var $title)
          Constructor
 
Method Summary
 void set_voice_text(var $text, var $audio_src)
          Sets text to be spoken by voice browsers.
 

Constructor Detail

HAW_phone

public HAW_phone(var $phone_number,
                 var $title)
Constructor
Parameters:
phone_number - Phone number to dial.
title - (optional)
If a string is provided here, the call button on a WAP/HDML device will be entitled. In order to work well with a broad range of user agents, keep your title under 6 characters.
Method Detail

set_voice_text

public void set_voice_text(var $text,
                           var $audio_src)
Sets text to be spoken by voice browsers.
Parameters:
text - Some alternative text that replaces <phone_number>.
audio_src - Some audio file (e.g. *.wav file) to play (optional).

© Norbert Huffschmid
assembled from PHP source
using sed and javadoc