PHP Класс Crunz\Utils

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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