Property | Type | Description | |
---|---|---|---|
$customOptionPaths | array | Custom | |
$log | array | Save log. |
Method | Description | |
---|---|---|
columns ( string $file ) : array | Read CSV columns. | |
data ( string $file ) : array | Get CSV data. | |
debug ( array | object $settings, integer $history, integer $step ) | ||
finish ( array $settings, string $backup ) | Finish importing. | |
getCustomOption ( string $fieldHandle ) : string | Get path to fieldtype's custom | |
getService ( stirng $elementType ) : craft\IImportElementType | boolean | Get service to use for importing. | |
onBeforeImportDelete ( craft\Event $event ) | ||
onImportFinish ( craft\Event $event ) | ||
onImportStart ( craft\Event $event ) | ||
prepForFieldType ( &$data, string $handle ) : mixed | Prepare fields for fieldtypes. | |
row ( integer $row, array $data, array | object $settings ) | Import row. | |
slugify ( string $slug ) : string | Function that (almost) mimics Craft's inner slugify process. |
Method | Description | |
---|---|---|
_open ( string $file ) : array | Special function that handles csv delimiter detection. | |
getNewTagModel ( ) : craft\TagModel | ||
saveBackup ( array $settings, string $backup, craft\UserModel $currentUser ) : string |
Method | Description | |
---|---|---|
prepAssetsFieldType ( string $data, craft\FieldModel $field ) : array | ||
prepCategoriesFieldType ( string $data, craft\FieldModel $field ) : array | ||
prepDropDownFieldType ( mixed $data, craft\FieldModel $field ) : mixed | ||
prepEntriesFieldType ( string $data, craft\FieldModel $field ) : array | ||
prepTagsFieldType ( string $data, craft\FieldModel $field ) : array | ||
prepUsersFieldType ( string $data, craft\FieldModel $field ) : array | ||
replaceOrDelete ( integer $row, array &$settings, craft\IImportElementType $service, array $fields ) : null | craft\BaseElementModel |
public getCustomOption ( string $fieldHandle ) : string | ||
$fieldHandle | string | |
return | string |
protected getNewTagModel ( ) : craft\TagModel | ||
return | craft\TagModel |
public getService ( stirng $elementType ) : craft\IImportElementType | boolean | ||
$elementType | stirng | |
return | craft\IImportElementType | boolean |
public onBeforeImportDelete ( craft\Event $event ) | ||
$event | craft\Event |
public prepForFieldType ( &$data, string $handle ) : mixed | ||
$handle | string | |
return | mixed |