Overview

Classes

  • Dropbox\AppInfo
  • Dropbox\ArrayEntryStore
  • Dropbox\AuthBase
  • Dropbox\AuthInfo
  • Dropbox\Client
  • Dropbox\OAuth1AccessToken
  • Dropbox\OAuth1Upgrader
  • Dropbox\Path
  • Dropbox\RootCertificates
  • Dropbox\Security
  • Dropbox\SSLTester
  • Dropbox\Util
  • Dropbox\WebAuth
  • Dropbox\WebAuthBase
  • Dropbox\WebAuthNoRedirect
  • Dropbox\WriteMode

Interfaces

  • Dropbox\ValueStore

Exceptions

  • Dropbox\AppInfoLoadException
  • Dropbox\AuthInfoLoadException
  • Dropbox\DeserializeException
  • Dropbox\Exception
  • Dropbox\Exception_BadRequest
  • Dropbox\Exception_BadResponse
  • Dropbox\Exception_BadResponseCode
  • Dropbox\Exception_InvalidAccessToken
  • Dropbox\Exception_NetworkIO
  • Dropbox\Exception_OverQuota
  • Dropbox\Exception_ProtocolError
  • Dropbox\Exception_RetryLater
  • Dropbox\Exception_ServerError
  • Dropbox\HostLoadException
  • Dropbox\StreamReadException
  • Dropbox\WebAuthException_BadRequest
  • Dropbox\WebAuthException_BadState
  • Dropbox\WebAuthException_Csrf
  • Dropbox\WebAuthException_NotApproved
  • Dropbox\WebAuthException_Provider
  • Overview
  • Class

Class Util

Namespace: Dropbox
Located at Dropbox/Util.php
Methods summary
public static string
# q( string $string )

Return a double-quoted version of the given string, using PHP-escape sequences for all non-printable and non-ASCII characters.

Return a double-quoted version of the given string, using PHP-escape sequences for all non-printable and non-ASCII characters.

Parameters

$string

Returns

string
public static string
# stripUtf8Bom( string $string )

If the given string begins with the UTF-8 BOM (byte order mark), remove it and return whatever is left. Otherwise, return the original string untouched.

If the given string begins with the UTF-8 BOM (byte order mark), remove it and return whatever is left. Otherwise, return the original string untouched.

Though it's not recommended for UTF-8 to have a BOM, the standard allows it to support software that isn't Unicode-aware.

Parameters

$string
A UTF-8 encoded string.

Returns

string
public static boolean
# startsWith( string $s, string $prefix, boolean $caseInsensitive = false )

Return whether $s starts with $prefix.

Return whether $s starts with $prefix.

Parameters

$s
$prefix
$caseInsensitive

Returns

boolean
public static string|null
# stripPrefix( string $s, string $prefix, boolean $caseInsensitive = false )

If $s starts with $prefix, return $s with $prefix removed. Otherwise, return null.

If $s starts with $prefix, return $s with $prefix removed. Otherwise, return null.

Parameters

$s
$prefix
$caseInsensitive

Returns

string|null
Constants summary
string SPECIAL_ESCAPE_IN
# "\r\n\t\\\""
string SPECIAL_ESCAPE_OUT
# "rnt\\\""
Dropbox SDK for PHP API documentation generated by ApiGen