/home/desid573/public_html/angel/payment/pdd/app/Vendor/Services/Twilio
NameSizeModeActions
Auth/-0755rm
Rest/-0755rm
TaskRouter/-0755rm
AccessToken.php29970644editdlrm
AutoPagingIterator.php28340644editdlrm
Capability.php54090644editdlrm
HttpException.php680644editdlrm
HttpStream.php30150644editdlrm
InstanceResource.php27960644editdlrm
IPMessagingInstanceResource.php4870644editdlrm
IPMessagingListResource.php6390644editdlrm
JWT.php52750644editdlrm
ListResource.php62270644editdlrm
LookupsInstanceResource.php4790644editdlrm
LookupsListResource.php12750644editdlrm
MonitorInstanceResource.php4790644editdlrm
MonitorListResource.php6310644editdlrm
NextGenInstanceResource.php6900644editdlrm
NextGenListResource.php18100644editdlrm
NumberType.php10760644editdlrm
Page.php14140644editdlrm
PartialApplicationHelper.php10670644editdlrm
PricingInstanceResource.php4770644editdlrm
PricingListResource.php3950644editdlrm
RequestValidator.php17140644editdlrm
Resource.php36970644editdlrm
RestException.php10920644editdlrm
SIPListResource.php3860644editdlrm
TaskRouterInstanceResource.php7250644editdlrm
TaskRouterListResource.php8780644editdlrm
TimeRangeResource.php11460644editdlrm
TinyHttp.php45820644editdlrm
TrunkingInstanceResource.php4810644editdlrm
TrunkingListResource.php11600644editdlrm
Twiml.php43730644editdlrm
UsageResource.php6610644editdlrm
WorkflowConfiguration.php25390644editdlrm
Edit: /home/desid573/public_html/angel/payment/pdd/app/Vendor/Services/Twilio/InstanceResource.php (2796B)
* @license http://creativecommons.org/licenses/MIT/ MIT * @link http://pear.php.net/package/Services_Twilio */ /** * Abstraction of an instance resource from the Twilio API. */ abstract class Services_Twilio_InstanceResource extends Services_Twilio_Resource { /** * 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 ` if * the update fails. */ public function update($params, $value = null) { if (!is_array($params)) { $params = array($params => $value); } $decamelizedParams = $this->client->createData($this->uri, $params); $this->updateAttributes($decamelizedParams); } /** * Add all properties from an associative array (the JSON response body) as * properties on this instance resource, except the URI * * :param stdClass $params: An object containing all of the parameters of * this instance * :return: Nothing, this is purely side effecting * :rtype: null */ public function updateAttributes($params) { unset($params->uri); foreach ($params as $name => $value) { $this->$name = $value; } } /** * 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 ` if * the update fails. */ public function __get($key) { if ($subresource = $this->getSubresources($key)) { return $subresource; } if (!isset($this->$key)) { $params = $this->client->retrieveData($this->uri); $this->updateAttributes($params); } return $this->$key; } }