You are here

static function SmsParserInterface::checkAccess in SMS Framework 7

Checks access to parser for incoming SMS.

Providers usually do this by checking against an allowed (range of) IP addresses. It could also be with a request parameter.

Remember when implementing if you use variables that these may not be loaded from the database, and would have to be set in the settings.php file, in the case of a configuration parsing and queuing without bootstrapping the database.

Parameters

string $originator: The originator of the SMS. Usually the IP address.

array $request: $_REQUEST array, or replacement.

Return value

bool|array TRUE to allow access. Response array if denied, @see this::response() for format.

1 method overrides SmsParserInterface::checkAccess()
SmsParserBase::checkAccess in ./sms.parser.inc
Checks access to parser for incoming SMS.

File

./sms.parser.inc, line 34

Class

SmsParserInterface
Incoming SMS parser.

Code

static function checkAccess($originator, $request);