PHP 클래스 NerdsAndCompany\Schematic\Services\Schematic

Sync Craft Setups.
저자: Nerds & Company
상속: extends Craft\BaseApplicationComponent
파일 보기 프로젝트 열기: itmundi/schematic 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$exportableDataTypes

공개 메소드들

메소드 설명
checkPermission ( ) : boolean Assume schematic can do anything.
exportToYaml ( string $file, $dataTypes = 'all', boolean $autoCreate = true ) : Result Export to Yaml file.
getExportableDataTypes ( )
getUser ( ) : Craft\Craft\UserModel Always return the super user.
importFromYaml ( string $file, string $override = null, boolean $force = false ) : Result Import from Yaml file.

비공개 메소드들

메소드 설명
doExport ( array $services, array &$data ) Handles exporting.
doImport ( Result $result, array $data, array | Base[] $services, boolean $force ) Handles importing.
exportDataModel ( string | array $dataTypes = 'all' ) : array Export data model.
getPluginData ( array $data, string $handle, array $default = [] ) : array Returns data from import model or default.
importDataModel ( Data $model, boolean $force ) : Result Import data model.

메소드 상세

checkPermission() 공개 메소드

Assume schematic can do anything.
public checkPermission ( ) : boolean
리턴 boolean

exportToYaml() 공개 메소드

Export to Yaml file.
public exportToYaml ( string $file, $dataTypes = 'all', boolean $autoCreate = true ) : Result
$file string
$autoCreate boolean
리턴 NerdsAndCompany\Schematic\Models\Result

getExportableDataTypes() 공개 정적인 메소드

public static getExportableDataTypes ( )

getUser() 공개 메소드

Always return the super user.
public getUser ( ) : Craft\Craft\UserModel
리턴 Craft\Craft\UserModel

importFromYaml() 공개 메소드

Import from Yaml file.
public importFromYaml ( string $file, string $override = null, boolean $force = false ) : Result
$file string
$override string
$force boolean if set to true items not included in import will be deleted
리턴 NerdsAndCompany\Schematic\Models\Result

프로퍼티 상세

$exportableDataTypes 보호되어 있는 정적으로 프로퍼티

protected static $exportableDataTypes