[ Index ] |
PHP Cross Reference of Phabricator |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 137 lines (4 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
Services_Twilio_TwimlException:: (0 methods):
Services_Twilio_Twiml:: (3 methods):
__construct()
__call()
__toString()
Class: Services_Twilio_Twiml - X-Ref
Twiml response generator.__construct($arg = null) X-Ref |
Constructs a Twiml response. :param SimpleXmlElement|array $arg: Can be any of - the element to wrap - attributes to add to the element - if null, initialize an empty element named 'Response' |
__call($verb, array $args) X-Ref |
Converts method calls into Twiml verbs. A basic example: .. code-block:: php php> print $this->say('hello'); <Say>hello</Say> An example with attributes: .. code-block:: php print $this->say('hello', array('voice' => 'woman')); <Say voice="woman">hello</Say> You could even just pass in an attributes array, omitting the noun: .. code-block:: php print $this->gather(array('timeout' => '20')); <Gather timeout="20"/> :param string $verb: The Twiml verb. :param array $args: - (noun string) - (noun string, attributes array) - (attributes array) :return: A SimpleXmlElement :rtype: SimpleXmlElement |
__toString() X-Ref |
Returns the object as XML. :return: The response as an XML string :rtype: string |
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |