\SMSDirections
Flexible SMS routing implementation
Synopsis
class SMSDirections
{
- // members
- protected $ubCache = NULL;
- protected array $directionsCache = ;
- protected integer $directionsCacheLifeTime = 1800;
- // methods
- public void __construct()
- public int getDirection()
- public string getDirectionNameById()
- public array getSMSServicesDirectionsData()
- public void refreshCacheForced()
Members
protected
- $directionsCache
—
array
$directionsCache array from UbillingCache - $directionsCacheLifeTime
—
int
Placeholder for SMS_SERVICES_BINDINGS_CACHE_LIFETIME from alter.ini - $ubCache
—
null
UbillingCache instance placeholder
Methods
public
- __construct()
- getDirection() — Returns SMS service ID as a direction from cache
- getDirectionNameById() — Returns SMS service name by it's ID from cache Recommended to use in a big message sets instead of zb_getSMSServiceNameByID()
- getSMSServicesDirectionsData() — Returns SMS services bindings suitable for caching
- refreshCacheForced()