PHP 클래스 ConsoleKit\Utils

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

공개 메소드들

메소드 설명
camelize ( string $string ) : string Returns a dash-cased string into a camelCased string
computeFuncParams ( ReflectionFunctionAbstract $reflection, array $args, array $options, boolean $needTagInDocComment = true ) : array Creates an array of parameters according to the function definition
dashized ( string $string ) : string Returns a camelCased string into a dash-cased string
filterFiles ( array $args, boolean $allowWildcards = true ) : array Extracts files from an array of args
find ( string $filename, array $dirs = [] ) : string Finds the first file that match the filename in any of the specified directories.
get ( array $array, string $key, mixed $default = null ) : mixed Returns the value from $key in $array or $default
join ( string $path1, string $path2 ) : string Joins paths together
mkdir ( string $dir, octal $mode = 511 ) Creates a directory recursively
pipedIn ( ) : string Returns piped in data
touch ( string $filename, string $content = '' ) Creates a file and its directory

메소드 상세

camelize() 공개 정적인 메소드

Returns a dash-cased string into a camelCased string
public static camelize ( string $string ) : string
$string string
리턴 string

computeFuncParams() 공개 정적인 메소드

Creates an array of parameters according to the function definition
public static computeFuncParams ( ReflectionFunctionAbstract $reflection, array $args, array $options, boolean $needTagInDocComment = true ) : array
$reflection ReflectionFunctionAbstract
$args array
$options array
$needTagInDocComment boolean Whether the compute-params tag must be present in the doc comment
리턴 array

dashized() 공개 정적인 메소드

Returns a camelCased string into a dash-cased string
public static dashized ( string $string ) : string
$string string
리턴 string

filterFiles() 공개 정적인 메소드

Extracts files from an array of args
public static filterFiles ( array $args, boolean $allowWildcards = true ) : array
$args array
$allowWildcards boolean Whether wildcards are allowed
리턴 array

find() 공개 정적인 메소드

Finds the first file that match the filename in any of the specified directories.
public static find ( string $filename, array $dirs = [] ) : string
$filename string
$dirs array
리턴 string

get() 공개 정적인 메소드

Returns the value from $key in $array or $default
public static get ( array $array, string $key, mixed $default = null ) : mixed
$array array
$key string
$default mixed
리턴 mixed

join() 공개 정적인 메소드

Joins paths together
public static join ( string $path1, string $path2 ) : string
$path1 string
$path2 string
리턴 string

mkdir() 공개 정적인 메소드

Creates a directory recursively
public static mkdir ( string $dir, octal $mode = 511 )
$dir string
$mode octal

pipedIn() 공개 정적인 메소드

Returns piped in data
public static pipedIn ( ) : string
리턴 string

touch() 공개 정적인 메소드

Creates a file and its directory
public static touch ( string $filename, string $content = '' )
$filename string
$content string