PHP 클래스 Crunz\Utils

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

공개 메소드들

메소드 설명
arrayOnly ( array $array, array | string $keys ) : array Get a subset of the items from the given array From Illuminate/support helper functions
generatePath ( string $relative_path ) : string return absolute path for relative path
getBaseDir ( ) : string Return project's root directory
getRoot ( string $autoloader ) : string Get the root directory by the autoloader file
setBaseDir ( $base_dir ) : string Set project's root directory
splitCamel ( string $text ) : string Split camel case string
wordToNumber ( string $text ) : string Converts words to numbers

메소드 상세

arrayOnly() 공개 정적인 메소드

Get a subset of the items from the given array From Illuminate/support helper functions
public static arrayOnly ( array $array, array | string $keys ) : array
$array array
$keys array | string
리턴 array

generatePath() 공개 정적인 메소드

return absolute path for relative path
public static generatePath ( string $relative_path ) : string
$relative_path string
리턴 string

getBaseDir() 공개 정적인 메소드

Return project's root directory
public static getBaseDir ( ) : string
리턴 string

getRoot() 공개 정적인 메소드

Get the root directory by the autoloader file
public static getRoot ( string $autoloader ) : string
$autoloader string
리턴 string

setBaseDir() 공개 정적인 메소드

Set project's root directory
public static setBaseDir ( $base_dir ) : string
리턴 string

splitCamel() 공개 정적인 메소드

Split camel case string
public static splitCamel ( string $text ) : string
$text string
리턴 string

wordToNumber() 공개 정적인 메소드

Converts words to numbers
public static wordToNumber ( string $text ) : string
$text string
리턴 string