PHP Class NerdsAndCompany\Schematic\Services\GlobalSets

Sync Craft Setups.
Author: Nerds & Company
Inheritance: extends Base
Show file Open project: itmundi/schematic

Public Methods

Method Description
export ( array $globalSets = [] ) : array Export globalsets.
import ( array $globalSetDefinitions, boolean $force = false ) : Result Attempt to import globals.

Private Methods

Method Description
getGlobalDefinition ( Craft\GlobalSetModel $globalSet ) : array Get global definition.
populateGlobalSet ( Craft\GlobalSetModel $globalSet, array $globalSetDefinition, string $globalSetHandle ) Populate globalset.

Method Details

export() public method

Export globalsets.
public export ( array $globalSets = [] ) : array
$globalSets array
return array

import() public method

Attempt to import globals.
public import ( array $globalSetDefinitions, boolean $force = false ) : Result
$globalSetDefinitions array
$force boolean If set to true globals not included in the import will be deleted
return Result