PHP Class NerdsAndCompany\Schematic\Services\Users

Sync Craft Setups.
Author: Nerds & Company
Inheritance: extends Base
ファイルを表示 Open project: itmundi/schematic Class Usage Examples

Public Methods

Method Description
export ( array $users = [] ) : array Export user settings.
import ( array $user_settings, boolean $force = true ) : Result Attempt to import user settings.

Private Methods

Method Description
getUsersDefinition ( Craft\UserModel $user ) : array Get users definition.

Method Details

export() public method

Export user settings.
public export ( array $users = [] ) : array
$users array
return array

import() public method

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