class Utils (View source)

Methods

static 
getPart(string $optionValue, string $string)

Gets upper case word among a string from the end or from the beginning part.

static 
getContentFromUrl(string $url, string $basicAuthLogin = null, string $basicAuthPassword = null, string $proxyHost = null, $proxyPort = null, string $proxyLogin = null, string $proxyPassword = null, array $contextOptions = [])

No description

static 
getStreamContextOptions(string $basicAuthLogin = null, string $basicAuthPassword = null, string $proxyHost = null, $proxyPort = null, string $proxyLogin = null, string $proxyPassword = null, array $contextOptions = [])

No description

static 
getValueWithinItsType($value, string $knownType = null)

No description

static 
resolveCompletePath(string $origin, string $destination)

No description

static 
cleanComment($comment, string $glueSeparator = ',', bool $uniqueValues = true)

No description

static 
cleanString(string $string, bool $keepMultipleUnderscores = true)

Clean a string to make it valid as PHP variable See more about the used regular expression at {@link http://www.regular-expressions.info/unicode.html}: - \p{L} for any valid letter - \p{N} for any valid number - /u for supporting unicode.

static 
removeNamespace(string $namespacedClassName)

No description

static 
createDirectory(string $directory, $permissions = 0775)

No description

static 
saveSchemas(string $destinationFolder, string $schemasFolder, string $schemasUrl, string $content)

Save schemas to schemasFolder Filename will be extracted from schemasUrl or default schema.wsdl will be used.

Details

static getPart(string $optionValue, string $string)

Gets upper case word among a string from the end or from the beginning part.

Parameters

string $optionValue
string $string

static getContentFromUrl(string $url, string $basicAuthLogin = null, string $basicAuthPassword = null, string $proxyHost = null, $proxyPort = null, string $proxyLogin = null, string $proxyPassword = null, array $contextOptions = [])

Parameters

string $url
string $basicAuthLogin
string $basicAuthPassword
string $proxyHost
$proxyPort
string $proxyLogin
string $proxyPassword
array $contextOptions

static getStreamContextOptions(string $basicAuthLogin = null, string $basicAuthPassword = null, string $proxyHost = null, $proxyPort = null, string $proxyLogin = null, string $proxyPassword = null, array $contextOptions = [])

Parameters

string $basicAuthLogin
string $basicAuthPassword
string $proxyHost
$proxyPort
string $proxyLogin
string $proxyPassword
array $contextOptions

static getValueWithinItsType($value, string $knownType = null)

Parameters

$value
string $knownType

static resolveCompletePath(string $origin, string $destination)

Parameters

string $origin
string $destination

static cleanComment($comment, string $glueSeparator = ',', bool $uniqueValues = true)

Parameters

$comment
string $glueSeparator
bool $uniqueValues

static cleanString(string $string, bool $keepMultipleUnderscores = true)

Clean a string to make it valid as PHP variable See more about the used regular expression at {@link http://www.regular-expressions.info/unicode.html}: - \p{L} for any valid letter - \p{N} for any valid number - /u for supporting unicode.

Parameters

string $string the string to clean
bool $keepMultipleUnderscores optional, allows to keep the multiple consecutive underscores

static removeNamespace(string $namespacedClassName)

Parameters

string $namespacedClassName

static createDirectory(string $directory, $permissions = 0775)

Parameters

string $directory
$permissions

static saveSchemas(string $destinationFolder, string $schemasFolder, string $schemasUrl, string $content)

Save schemas to schemasFolder Filename will be extracted from schemasUrl or default schema.wsdl will be used.

Parameters

string $destinationFolder
string $schemasFolder
string $schemasUrl
string $content