Documentation

CheckFields

Description and parameters

bool
CCatalogImport::CheckFields(
  string ACTION,
  array &arFields
);

Method checks parameters, passed to method [link=485500]CCatalogImport::Add[/link] and [link=485502]CCatalogImport::Update[/link]. Non-static method.

Call parameters

Parameter Description
ACTION Specified which method is checked. Possible values:
  • ADD - for method [link=485500]CCatalogImport::Add[/link];
  • UPDATE - for method [link=485502]CCatalogImport::Update[/link].
arFields Associative array with export profile parameters. Permissible values:
  • CREATED_BY - user ID, who created profile;
  • MODIFIED_BY - user ID, who updated profile;
  • TIMESTAMP_X - time of the last profile update in site format;
  • DATE_CREATE - date and time of created profile in site format;
  • FILE_NAME - profile file name with script to perform import. Key is required, if $ACTION = 'ADD';
  • NAME - import profile name. Key is required, if $ACTION = 'ADD';
  • IN_MENU - [Y|N] flag for showing profile in admin menu;
  • DEFAULT_PROFILE - [Y|N] attribute to use profile by default;
  • IN_AGENT - [Y|N] flag for available agent, performing profile export;
  • IN_CRON - [Y|N] flag for associating the profile to cron utility for automatic periodic upload (for Unix systems only);
  • NEED_EDIT - [Y|N] flag specifies incomplete profile setup (profile is not executed until its edited).

Returned value

Returns true on correctly passed parameters, otherwise - false.

See Also

  • [link=485500]CCatalogImport::Add[/link]
  • [link=485502]CCatalogImport::Update[/link]

© «Bitrix24», 2001-2024
Up