/home/desid573/public_html/app/twilio-php-master/Twilio/Rest/Sync/V1/Service
NameSizeModeActions
Document/-0755rm
SyncList/-0755rm
SyncMap/-0755rm
SyncStream/-0755rm
DocumentContext.php48330644editdlrm
DocumentInstance.php49210644editdlrm
DocumentList.php57370644editdlrm
DocumentOptions.php37140644editdlrm
DocumentPage.php8700644editdlrm
SyncListContext.php54570644editdlrm
SyncListInstance.php51000644editdlrm
SyncListList.php56150644editdlrm
SyncListOptions.php29580644editdlrm
SyncListPage.php8700644editdlrm
SyncMapContext.php54060644editdlrm
SyncMapInstance.php50730644editdlrm
SyncMapList.php55940644editdlrm
SyncMapOptions.php29490644editdlrm
SyncMapPage.php8670644editdlrm
SyncStreamContext.php46080644editdlrm
SyncStreamInstance.php47740644editdlrm
SyncStreamList.php56820644editdlrm
SyncStreamOptions.php32700644editdlrm
SyncStreamPage.php8760644editdlrm
Edit: /home/desid573/public_html/app/twilio-php-master/Twilio/Rest/Sync/V1/Service/DocumentContext.php (4833B)
solution = array('serviceSid' => $serviceSid, 'sid' => $sid, ); $this->uri = '/Services/' . rawurlencode($serviceSid) . '/Documents/' . rawurlencode($sid) . ''; } /** * Fetch a DocumentInstance * * @return DocumentInstance Fetched DocumentInstance */ public function fetch() { $params = Values::of(array()); $payload = $this->version->fetch( 'GET', $this->uri, $params ); return new DocumentInstance( $this->version, $payload, $this->solution['serviceSid'], $this->solution['sid'] ); } /** * Deletes the DocumentInstance * * @return boolean True if delete succeeds, false otherwise */ public function delete() { return $this->version->delete('delete', $this->uri); } /** * Update the DocumentInstance * * @param array|Options $options Optional Arguments * @return DocumentInstance Updated DocumentInstance */ public function update($options = array()) { $options = new Values($options); $data = Values::of(array( 'Data' => Serialize::jsonObject($options['data']), 'Ttl' => $options['ttl'], )); $payload = $this->version->update( 'POST', $this->uri, array(), $data ); return new DocumentInstance( $this->version, $payload, $this->solution['serviceSid'], $this->solution['sid'] ); } /** * Access the documentPermissions * * @return \Twilio\Rest\Sync\V1\Service\Document\DocumentPermissionList */ protected function getDocumentPermissions() { if (!$this->_documentPermissions) { $this->_documentPermissions = new DocumentPermissionList( $this->version, $this->solution['serviceSid'], $this->solution['sid'] ); } return $this->_documentPermissions; } /** * Magic getter to lazy load subresources * * @param string $name Subresource to return * @return \Twilio\ListResource The requested subresource * @throws \Twilio\Exceptions\TwilioException For unknown subresources */ public function __get($name) { if (property_exists($this, '_' . $name)) { $method = 'get' . ucfirst($name); return $this->$method(); } throw new TwilioException('Unknown subresource ' . $name); } /** * Magic caller to get resource contexts * * @param string $name Resource to return * @param array $arguments Context parameters * @return \Twilio\InstanceContext The requested resource context * @throws \Twilio\Exceptions\TwilioException For unknown resource */ public function __call($name, $arguments) { $property = $this->$name; if (method_exists($property, 'getContext')) { return call_user_func_array(array($property, 'getContext'), $arguments); } throw new TwilioException('Resource does not have a context'); } /** * Provide a friendly representation * * @return string Machine friendly representation */ public function __toString() { $context = array(); foreach ($this->solution as $key => $value) { $context[] = "$key=$value"; } return '[Twilio.Sync.V1.DocumentContext ' . implode(' ', $context) . ']'; } }