RetailCRM API Client

Utils
in package

Class Utils

Tags
category

Utils

Table of Contents

Methods

getBodyContents()  : string
Returns body stream data (it should work like that in order to keep compatibility with some implementations).
getModelsCacheDirectory()  : string
Returns target directory for the model cache.
getModelsDirectory()  : string
Returns models directory.
removeTrailingSlash()  : string
Remove trailing slash from provided text.
removeVersionFromUri()  : string
Remove version from URI.

Methods

getBodyContents()

Returns body stream data (it should work like that in order to keep compatibility with some implementations).

public static getBodyContents(StreamInterface $stream) : string
Parameters
$stream : StreamInterface
Return values
string

getModelsCacheDirectory()

Returns target directory for the model cache.

public static getModelsCacheDirectory() : string
Return values
string

getModelsDirectory()

Returns models directory.

public static getModelsDirectory() : string
Return values
string

removeTrailingSlash()

Remove trailing slash from provided text.

public static removeTrailingSlash(string $text) : string
Parameters
$text : string
Return values
string

removeVersionFromUri()

Remove version from URI.

public static removeVersionFromUri(string $uri) : string
Parameters
$uri : string
Return values
string

        
On this page

Search results