adoSchema::supportedPlatform PHP Method

supportedPlatform() public method

Checks if element references a specific platform
public supportedPlatform ( string $platform = NULL )
$platform string Requested platform
    function supportedPlatform($platform = NULL)
    {
        $regex = '/^(\\w*\\|)*' . $this->db->databaseType . '(\\|\\w*)*$/';
        if (!isset($platform) or preg_match($regex, $platform)) {
            logMsg("Platform {$platform} is supported");
            return TRUE;
        } else {
            logMsg("Platform {$platform} is NOT supported");
            return FALSE;
        }
    }