PHP 클래스 M1\Vars\Resource\ResourceProvider

부터: 0.1.0
상속: extends AbstractResource, use trait M1\Vars\Traits\ResourceFlagsTrait
파일 보기 프로젝트 열기: m1/Vars 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$vars M1\Vars\Vars The parent Vars class

공개 메소드들

메소드 설명
__construct ( Vars $vars, string | array $entity, boolean $relative = true, boolean $recursive = false ) The ResourceProvider constructor creates the content from the entity
addParentContent ( array $content ) Adds content to the parent content array
getParentContent ( ) : mixed Returns the parent content
mergeParentContent ( ) : ResourceProvider Merges the content and the parent content together

비공개 메소드들

메소드 설명
addContent ( array $content ) Adds content to the parent contents
createResources ( array $resources, string $type ) Creates the FileResource|ResourceProvider from the resource
getSupportedFilesInDir ( string $entity ) : array | boolean Returns the supported files using the extensions from the loaders in the entity which is a directory
mergeContents ( ) : array Merges various configuration contents into one array
parseEntity ( string $entity ) Creates the content from the entity
processEntity ( string | array $entity, string $type ) Creates the content from the entity

메소드 상세

__construct() 공개 메소드

The ResourceProvider constructor creates the content from the entity
public __construct ( Vars $vars, string | array $entity, boolean $relative = true, boolean $recursive = false )
$vars M1\Vars\Vars The calling Vars class
$entity string | array The configuration entity
$relative boolean Is the entity relative to the calling entity or class
$recursive boolean If entity a dir, do you want to recursively check directories

addParentContent() 공개 메소드

Adds content to the parent content array
public addParentContent ( array $content )
$content array The content to add

getParentContent() 공개 메소드

Returns the parent content
public getParentContent ( ) : mixed
리턴 mixed The parent content

mergeParentContent() 공개 메소드

Merges the content and the parent content together
public mergeParentContent ( ) : ResourceProvider
리턴 ResourceProvider

프로퍼티 상세

$vars 공개적으로 프로퍼티

The parent Vars class
public Vars,M1\Vars $vars
리턴 M1\Vars\Vars