[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

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

Abstraction of a Twilio resource.

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

Defines 9 functions

  __construct()
  init()
  getSubresources()
  setupSubresources()
  getResourceName()
  decamelize()
  camelize()
  __get()
  __toString()

Functions
Functions that are not part of a class:

__construct($client, $uri, $params = array()   X-Ref
No description

init($client, $uri)   X-Ref
No description

getSubresources($name = null)   X-Ref
No description

setupSubresources()   X-Ref
No description

getResourceName($camelized = false)   X-Ref
No description

decamelize($word)   X-Ref
No description

camelize($word)   X-Ref
Return camelized version of a word
Examples: sms_messages => SMSMessages, calls => Calls,
incoming_phone_numbers => IncomingPhoneNumbers

param: string $word The word to camelize
return: string

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

param: string $key The property name
return: mixed Could be anything.

__toString()   X-Ref
Print a JSON representation of this object. Strips the HTTP client
before returning.

Note, this should mainly be used for debugging, and is not guaranteed
to correspond 1:1 with the JSON API output.

Note that echoing an object before an HTTP request has been made to
"fill in" its properties may return an empty object



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