[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/externals/twilio-php/Services/Twilio/ -> InstanceResource.php (summary)

(no description)

Author: Neuman Vong <[email protected]>
License: http://creativecommons.org/licenses/MIT/ MIT
File Size: 84 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 3 functions

  update()
  updateAttributes()
  __get()

Functions
Functions that are not part of a class:

update($params, $value = null)   X-Ref
Make a request to the API to update an instance resource

:param mixed $params: An array of updates, or a property name
:param mixed $value:  A value with which to update the resource

:rtype: null
:throws: a :php:class:`RestException <Services_Twilio_RestException>` if
the update fails.

updateAttributes($params)   X-Ref
No description

__get($key)   X-Ref
Get the value of a property on this resource.

Instead of defining all of the properties of an object directly, we rely
on the API to tell us which properties an object has. This method will
query the API to retrieve a property for an object, if it is not already
set on the object.

If the call is to a subresource, eg ``$client->account->messages``, no
request is made.

To help with lazy HTTP requests, we don't actually retrieve an object
from the API unless you really need it. Hence, this function may make API
requests even if the property you're requesting isn't available on the
resource.

:param string $key: The property name

:return mixed: Could be anything.
:throws: a :php:class:`RestException <Services_Twilio_RestException>` if
the update fails.



Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1