프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$customOptionPaths | array | Custom | |
$log | array | Save log. |
메소드 | 설명 | |
---|---|---|
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. |
메소드 | 설명 | |
---|---|---|
_open ( string $file ) : array | Special function that handles csv delimiter detection. | |
getNewTagModel ( ) : craft\TagModel | ||
saveBackup ( array $settings, string $backup, craft\UserModel $currentUser ) : string |
메소드 | 설명 | |
---|---|---|
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 | |
리턴 | string |
public getService ( stirng $elementType ) : craft\IImportElementType | boolean | ||
$elementType | stirng | |
리턴 | craft\IImportElementType | boolean |
public prepForFieldType ( &$data, string $handle ) : mixed | ||
$handle | string | |
리턴 | mixed |