Documentation

Update

bool
CCatalogImport::Update(
  int ID,
  array arFields
);

Method updates import profile parameters with ID to values from array arFields. Non-static method.

Note: You cannot avoid CheckFIelds when entering values to this method, with a single exception:
"=LAST_USE" => $DB->GetNowFunction()

Call parameters

Parameter Description
ID Code for updated import profile.
arFields Associative array with import profile parameters, with keys as parameter names and new values. Available parameters
  • MODIFIED_BY - user profile ID;
  • FILE_NAME - profile file name with script to perform import;
  • NAME - import profile name;
  • 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 import;
  • IN_CRON - [Y|N] flag for associating the profile to cron utility for automatic periodic upload (for Unix systems only);
  • SETUP_VARS - profile setup parameters as URL string;
  • NEED_EDIT - [Y|N] flag specifies incomplete profile setup (profile is not executed until its edited).

Returned value

Returns true on successfully updated import profile parameters and false otherwise.



© «Bitrix24», 2001-2024
Up