Add meta_hidden to adapters
This commit is contained in:
parent
c713a4419a
commit
c0c79781bf
|
@ -38,6 +38,12 @@ namespace adapters;
|
||||||
*/
|
*/
|
||||||
public static function meta_uid(): string;
|
public static function meta_uid(): string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Should this adapter be hidden in user interface for phone creation and
|
||||||
|
* available to creation through API only
|
||||||
|
*/
|
||||||
|
public static function meta_hidden(): bool;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Name of the adapter.
|
* Name of the adapter.
|
||||||
* It should probably be the name of the service it adapt (e.g : Gammu SMSD, OVH SMS, SIM800L, etc.).
|
* It should probably be the name of the service it adapt (e.g : Gammu SMSD, OVH SMS, SIM800L, etc.).
|
||||||
|
|
|
@ -57,6 +57,15 @@ namespace adapters;
|
||||||
return 'benchmark_adapter';
|
return 'benchmark_adapter';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Should this adapter be hidden in user interface for phone creation and
|
||||||
|
* available to creation through API only
|
||||||
|
*/
|
||||||
|
public static function meta_hidden(): bool
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Name of the adapter.
|
* Name of the adapter.
|
||||||
* It should probably be the name of the service it adapt (e.g : Gammu SMSD, OVH SMS, SIM800L, etc.).
|
* It should probably be the name of the service it adapt (e.g : Gammu SMSD, OVH SMS, SIM800L, etc.).
|
||||||
|
|
|
@ -52,6 +52,16 @@ namespace adapters;
|
||||||
return 'gammu_adapter';
|
return 'gammu_adapter';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Should this adapter be hidden in user interface for phone creation and
|
||||||
|
* available to creation through API only
|
||||||
|
*/
|
||||||
|
public static function meta_hidden(): bool
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Name of the adapter.
|
* Name of the adapter.
|
||||||
* It should probably be the name of the service it adapt (e.g : Gammu SMSD, OVH SMS, SIM800L, etc.).
|
* It should probably be the name of the service it adapt (e.g : Gammu SMSD, OVH SMS, SIM800L, etc.).
|
||||||
|
|
|
@ -78,6 +78,15 @@ class OctopushShortcodeAdapter implements AdapterInterface
|
||||||
return 'octopush_shortcode_adapter';
|
return 'octopush_shortcode_adapter';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Should this adapter be hidden in user interface for phone creation and
|
||||||
|
* available to creation through API only
|
||||||
|
*/
|
||||||
|
public static function meta_hidden(): bool
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Name of the adapter.
|
* Name of the adapter.
|
||||||
* It should probably be the name of the service it adapt (e.g : Gammu SMSD, OVH SMS, SIM800L, etc.).
|
* It should probably be the name of the service it adapt (e.g : Gammu SMSD, OVH SMS, SIM800L, etc.).
|
||||||
|
@ -393,7 +402,7 @@ class OctopushShortcodeAdapter implements AdapterInterface
|
||||||
$response = [
|
$response = [
|
||||||
'error' => false,
|
'error' => false,
|
||||||
'error_message' => null,
|
'error_message' => null,
|
||||||
'uid' => null,
|
'sms' => null,
|
||||||
];
|
];
|
||||||
|
|
||||||
header('Connection: close');
|
header('Connection: close');
|
||||||
|
|
|
@ -84,6 +84,15 @@ class OctopushVirtualNumberAdapter implements AdapterInterface
|
||||||
return 'octopush_virtual_number_adapter';
|
return 'octopush_virtual_number_adapter';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Should this adapter be hidden in user interface for phone creation and
|
||||||
|
* available to creation through API only
|
||||||
|
*/
|
||||||
|
public static function meta_hidden(): bool
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Name of the adapter.
|
* Name of the adapter.
|
||||||
* It should probably be the name of the service it adapt (e.g : Gammu SMSD, OVH SMS, SIM800L, etc.).
|
* It should probably be the name of the service it adapt (e.g : Gammu SMSD, OVH SMS, SIM800L, etc.).
|
||||||
|
|
|
@ -63,6 +63,15 @@ namespace adapters;
|
||||||
return 'ovh_sms_shortcode_adapter';
|
return 'ovh_sms_shortcode_adapter';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Should this adapter be hidden in user interface for phone creation and
|
||||||
|
* available to creation through API only
|
||||||
|
*/
|
||||||
|
public static function meta_hidden(): bool
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Name of the adapter.
|
* Name of the adapter.
|
||||||
* It should probably be the name of the service it adapt (e.g : Gammu SMSD, OVH SMS, SIM800L, etc.).
|
* It should probably be the name of the service it adapt (e.g : Gammu SMSD, OVH SMS, SIM800L, etc.).
|
||||||
|
|
|
@ -75,6 +75,15 @@ namespace adapters;
|
||||||
return 'ovh_sms_virtual_number_adapter';
|
return 'ovh_sms_virtual_number_adapter';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Should this adapter be hidden in user interface for phone creation and
|
||||||
|
* available to creation through API only
|
||||||
|
*/
|
||||||
|
public static function meta_hidden(): bool
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Name of the adapter.
|
* Name of the adapter.
|
||||||
* It should probably be the name of the service it adapt (e.g : Gammu SMSD, OVH SMS, SIM800L, etc.).
|
* It should probably be the name of the service it adapt (e.g : Gammu SMSD, OVH SMS, SIM800L, etc.).
|
||||||
|
|
|
@ -62,6 +62,15 @@ namespace adapters;
|
||||||
return 'test_adapter';
|
return 'test_adapter';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Should this adapter be hidden in user interface for phone creation and
|
||||||
|
* available to creation through API only
|
||||||
|
*/
|
||||||
|
public static function meta_hidden(): bool
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Name of the adapter.
|
* Name of the adapter.
|
||||||
* It should probably be the name of the service it adapt (e.g : Gammu SMSD, OVH SMS, SIM800L, etc.).
|
* It should probably be the name of the service it adapt (e.g : Gammu SMSD, OVH SMS, SIM800L, etc.).
|
||||||
|
|
|
@ -74,6 +74,15 @@ class TwilioVirtualNumberAdapter implements AdapterInterface
|
||||||
return 'twilio_virtual_number_adapter';
|
return 'twilio_virtual_number_adapter';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Should this adapter be hidden in user interface for phone creation and
|
||||||
|
* available to creation through API only
|
||||||
|
*/
|
||||||
|
public static function meta_hidden(): bool
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Name of the adapter.
|
* Name of the adapter.
|
||||||
* It should probably be the name of the service it adapt (e.g : Gammu SMSD, OVH SMS, SIM800L, etc.).
|
* It should probably be the name of the service it adapt (e.g : Gammu SMSD, OVH SMS, SIM800L, etc.).
|
||||||
|
|
Loading…
Reference in New Issue