PHP 클래스 WsdlToPhp\PackageGenerator\Generator\Utils

파일 보기 프로젝트 열기: wsdltophp/packagegenerator 1 사용 예제들

공개 메소드들

메소드 설명
cleanComment ( string $comment, string $glueSeparator = ',', boolean $uniqueValues = true ) : string Clean comment
cleanString ( string $string, boolean $keepMultipleUnderscores = true ) : string 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 suporting unicode
createDirectory ( string $directory, integer $permissions = 509 ) : boolean
getContentFromUrl ( string $url, string $basicAuthLogin = null, string $basicAuthPassword = null, string $proxyHost = null, string $proxyPort = null, string $proxyLogin = null, string $proxyPassword = null, array $contextOptions = [] ) : string Get content from url using a proxy or not
getContentFromUrlContextOptions ( string $url, string $basicAuthLogin = null, string $basicAuthPassword = null, string $proxyHost = null, string $proxyPort = null, string $proxyLogin = null, string $proxyPassword = null, array $contextOptions = [] ) : string[]
getPart ( string $optionValue, string $string ) : string Gets upper case word admong a string from the end or from the beginning part
getValueWithinItsType ( mixed $value, $knownType = null ) : mixed Returns the value with good type
removeNamespace ( string $namespacedClassName ) : string
resolveCompletePath ( string $origin, string $destination ) : string

메소드 상세

cleanComment() 공개 정적인 메소드

Clean comment
public static cleanComment ( string $comment, string $glueSeparator = ',', boolean $uniqueValues = true ) : string
$comment string the comment to clean
$glueSeparator string ths string to use when gathering values
$uniqueValues boolean indicates if comment values must be unique or not
리턴 string

cleanString() 공개 정적인 메소드

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 suporting unicode
public static cleanString ( string $string, boolean $keepMultipleUnderscores = true ) : string
$string string the string to clean
$keepMultipleUnderscores boolean optional, allows to keep the multiple consecutive underscores
리턴 string

createDirectory() 공개 정적인 메소드

public static createDirectory ( string $directory, integer $permissions = 509 ) : boolean
$directory string
$permissions integer
리턴 boolean

getContentFromUrl() 공개 정적인 메소드

Get content from url using a proxy or not
public static getContentFromUrl ( string $url, string $basicAuthLogin = null, string $basicAuthPassword = null, string $proxyHost = null, string $proxyPort = null, string $proxyLogin = null, string $proxyPassword = null, array $contextOptions = [] ) : string
$url string
$basicAuthLogin string
$basicAuthPassword string
$proxyHost string
$proxyPort string
$proxyLogin string
$proxyPassword string
$contextOptions array
리턴 string

getContentFromUrlContextOptions() 공개 정적인 메소드

public static getContentFromUrlContextOptions ( string $url, string $basicAuthLogin = null, string $basicAuthPassword = null, string $proxyHost = null, string $proxyPort = null, string $proxyLogin = null, string $proxyPassword = null, array $contextOptions = [] ) : string[]
$url string
$basicAuthLogin string
$basicAuthPassword string
$proxyHost string
$proxyPort string
$proxyLogin string
$proxyPassword string
$contextOptions array
리턴 string[]

getPart() 공개 정적인 메소드

Gets upper case word admong a string from the end or from the beginning part
public static getPart ( string $optionValue, string $string ) : string
$optionValue string
$string string the string from which we can extract the part
리턴 string

getValueWithinItsType() 공개 정적인 메소드

Returns the value with good type
public static getValueWithinItsType ( mixed $value, $knownType = null ) : mixed
$value mixed the value
리턴 mixed

removeNamespace() 공개 정적인 메소드

public static removeNamespace ( string $namespacedClassName ) : string
$namespacedClassName string
리턴 string

resolveCompletePath() 공개 정적인 메소드

public static resolveCompletePath ( string $origin, string $destination ) : string
$origin string
$destination string
리턴 string