PHP Trait League\CLImate\TerminalObject\Helper\Art

Datei anzeigen Open project: joetannenbaum/climate

Protected Properties

Property Type Description
$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

Public Methods

Method Description
importSettingArt ( League\CLImate\Settings\Art $setting ) Import the Art setting (any directories the user added)
settings ( ) : array Specify which settings Draw needs to import

Protected Methods

Method Description
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

Method Details

addDir() protected method

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

artDir() protected method

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

artFile() protected method

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

fileSearch() protected method

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
return array

importSettingArt() public method

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

parse() protected method

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

settings() public method

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

Property Details

$art protected_oe property

The art requested by the user
protected string $art
return string

$art_dirs protected_oe property

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

$default_art protected_oe property

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