Documentation

Add

mixed
CCatalogExport::Add(
   array arFields
);

Method adds new export profile. 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
arFields Available fields:
  • CREATED_BY - user profile ID. In case the value of this field is not passed, takes value from parameter CUser if $USER and authentication are available. Otherwise, this field will have NULL;
  • MODIFIED_BY - user profile ID. In case the value of this field is not passed, takes value from parameter CUser if $USER and authentication are available. Otherwise, this field value will have NULL;
  • TIMESTAMP_X - time of the last profile update in site format. This field cannot be specified manually;
  • DATE_CREATE - date when profile in site format is created. This field value be specified manually;
  • FILE_NAME - profile file name with script to perform export;
  • NAME - export 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 export;
  • 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

Method returns code for inserted record or false otherwise.



© «Bitrix24», 2001-2024
Up