public static function hasPublicAction(AbstractConnector $connector, string $connectorName, string $action)
    {
        //====================================================================//
        // Safety Check - Connector Exists
        if (empty($connector) || empty($action)) {
            return false;
        }
        //====================================================================//
        // Safety Check - Connector Name is Similar
        $profile = $connector->getProfile();
        if (!isset($profile['name']) || (strtolower($connectorName) != strtolower($profile['name']))) {
            return false;
        }
        //====================================================================//
        // Safety Check - Connector Action Exists
        $connectorActions = $connector->getPublicActions();
        if (!isset($connectorActions[strtolower($action)]) || empty($connectorActions[strtolower($action)])) {
            return false;
        }

        return $connectorActions[strtolower($action)];
    }
public static function hasPublicAction(AbstractConnector $connector, string $connectorName, string $action)
    {
        //====================================================================//
        // Safety Check - Connector Exists
        if (empty($connector) || empty($action)) {
            return false;
        }
        //====================================================================//
        // Safety Check - Connector Name is Similar
        $profile = $connector->getProfile();
        if (!isset($profile['name']) || (strtolower($connectorName) != strtolower($profile['name']))) {
            return false;
        }
        //====================================================================//
        // Safety Check - Connector Action Exists
        $connectorActions = $connector->getPublicActions();
        if (!isset($connectorActions[strtolower($action)]) || empty($connectorActions[strtolower($action)])) {
            return false;
        }

        return $connectorActions[strtolower($action)];
    }
public static function hasPublicAction ( AbstractConnector $ connector , string $ connectorName , string $ action ) { //====================================================================// // Safety Check - Connector Exists if ( empty ( $ connector ) || empty ( $ action ) ) { return false ; } //====================================================================// // Safety Check - Connector Name is Similar $ profile = $ connector -> getProfile ( ) ; if ( ! isset ( $ profile [ 'name' ] ) || ( strtolower ( $ connectorName ) != strtolower ( $ profile [ 'name' ] ) ) ) { return false ; } //====================================================================// // Safety Check - Connector Action Exists $ connectorActions = $ connector -> getPublicActions ( ) ; if ( ! isset ( $ connectorActions [ strtolower ( $ action ) ] ) || empty ( $ connectorActions [ strtolower ( $ action ) ] ) ) { return false ; } return $ connectorActions [ strtolower ( $ action ) ] ; }
Validate Connector Public Action Exists

@param AbstractConnector $connector
@param string            $connectorName
@param string            $action

@return false|string
Validate Connector Public Action Exists