PHP 클래스 Todaymade\Daux\DauxHelper

파일 보기 프로젝트 열기: justinwalsh/daux.io 1 사용 예제들

공개 메소드들

메소드 설명
charsArray ( ) : array Returns the replacements for the slug() method.
getCleanPath ( string $path ) : string Remove all '/./' and '/.
getFile ( Directory $tree, string $request ) : Todaymade\Daux\Tree\Content | Tree\Raw | false Locate a file in the tree. Returns the file if found or false
getFilenames ( Config $config, string $part ) : string[] Get the possible output file names for a source file.
getRelativePath ( string $from, string $to ) : string
isAbsolutePath ( $path )
rebaseConfiguration ( Config $config, string $base_url ) Set a new base_url for the configuration
slug ( string $title ) : string Generate a URL friendly "slug" from a given string.

보호된 메소드들

메소드 설명
getTheme ( Config $params, string $current_url ) : array
resolveVariant ( Config $params )

메소드 상세

charsArray() 공개 정적인 메소드

Taken from Stringy
public static charsArray ( ) : array
리턴 array An array of replacements.

getCleanPath() 공개 정적인 메소드

./' in a path, without actually checking the path
public static getCleanPath ( string $path ) : string
$path string
리턴 string

getFile() 공개 정적인 메소드

Locate a file in the tree. Returns the file if found or false
public static getFile ( Directory $tree, string $request ) : Todaymade\Daux\Tree\Content | Tree\Raw | false
$tree Todaymade\Daux\Tree\Directory
$request string
리턴 Todaymade\Daux\Tree\Content | Tree\Raw | false

getFilenames() 공개 정적인 메소드

Get the possible output file names for a source file.
public static getFilenames ( Config $config, string $part ) : string[]
$config Config
$part string
리턴 string[]

getRelativePath() 공개 정적인 메소드

public static getRelativePath ( string $from, string $to ) : string
$from string
$to string
리턴 string

getTheme() 보호된 정적인 메소드

protected static getTheme ( Config $params, string $current_url ) : array
$params Config
$current_url string
리턴 array

isAbsolutePath() 공개 정적인 메소드

public static isAbsolutePath ( $path )

rebaseConfiguration() 공개 정적인 메소드

Set a new base_url for the configuration
public static rebaseConfiguration ( Config $config, string $base_url )
$config Config
$base_url string

resolveVariant() 보호된 정적인 메소드

protected static resolveVariant ( Config $params )
$params Config

slug() 공개 정적인 메소드

Taken from Stringy
public static slug ( string $title ) : string
$title string
리턴 string