PHP 트레잇 League\CLImate\TerminalObject\Helper\Art

파일 보기 프로젝트 열기: joetannenbaum/climate

보호된 프로퍼티들

프로퍼티 타입 설명
$art string The art requested by the user
$art_dirs array The directories we should be looking for art in
$default_art string The default art if we can't find what the user requested

공개 메소드들

메소드 설명
importSettingArt ( League\CLImate\Settings\Art $setting ) Import the Art setting (any directories the user added)
settings ( ) : array Specify which settings Draw needs to import

보호된 메소드들

메소드 설명
addDir ( string $dir ) Add a directory to search for art in
artDir ( string $art ) : array Find a valid art path
artFile ( string $art ) : string Find a valid art path
fileSearch ( string $art, string $pattern ) : array Find a set of files in the current art directories based on a pattern
parse ( string $path ) : array Parse the contents of the file and return each line

메소드 상세

addDir() 보호된 메소드

Add a directory to search for art in
protected addDir ( string $dir )
$dir string

artDir() 보호된 메소드

Find a valid art path
protected artDir ( string $art ) : array
$art string
리턴 array

artFile() 보호된 메소드

Find a valid art path
protected artFile ( string $art ) : string
$art string
리턴 string

fileSearch() 보호된 메소드

Find a set of files in the current art directories based on a pattern
protected fileSearch ( string $art, string $pattern ) : array
$art string
$pattern string
리턴 array

importSettingArt() 공개 메소드

Import the Art setting (any directories the user added)
public importSettingArt ( League\CLImate\Settings\Art $setting )
$setting League\CLImate\Settings\Art

parse() 보호된 메소드

Parse the contents of the file and return each line
protected parse ( string $path ) : array
$path string
리턴 array

settings() 공개 메소드

Specify which settings Draw needs to import
public settings ( ) : array
리턴 array

프로퍼티 상세

$art 보호되어 있는 프로퍼티

The art requested by the user
protected string $art
리턴 string

$art_dirs 보호되어 있는 프로퍼티

The directories we should be looking for art in
protected array $art_dirs
리턴 array

$default_art 보호되어 있는 프로퍼티

The default art if we can't find what the user requested
protected string $default_art
리턴 string