Documentation

CheckFields

Description and parameters

bool
CCatalogStore::CheckFields(
 string action,
 array &arFields
);

Method checks parameters passed in methods [link=583726]CCatalogStore::Add[/link] and [link=583696]CCatalogStore::Update[/link]. Non-static method.

Call parameters

Parameter Description
action Indicates which method is being checked. Possible values:
  • ADD - for method [link=583726]CCatalogStore::Add[/link];
  • UPDATE - for method [link=583696]CCatalogStore::Update[/link].
arFields Associative array with warehouse parameters. Permitted keys:
  • TITLE - warehouse name;
  • ACTIVE - warehouse active ('Y' - yes, 'N' - not active);
  • ADDRESS - warehouse address;
  • DESCRIPTION - warehouse description;
  • GPS_N - GPS coordinate (latitude);
  • GPS_S - GPS coordinate (longitude);
  • IMAGE_ID - warehouse image ID;
  • PHONE - telephone;
  • SCHEDULE - warehouse schedule;
  • XML_ID - warehouse XML_ID for 1C export\import;
  • ISSUING_CENTER - Pick-up location (Y/N);
  • SHIPPING_CENTER - Shipping center (Y/N).
  • SITE_ID - site.

Returned value

On correctly passed parameters returns true, otherwise - false. In case of returned false, you can get error text via $APPLICATION->GetException().

See Also

  • [link=297001]Table structure[/link]
  • [link=583726]CCatalogStore::Add[/link]
  • [link=583696]CCatalogStore::Update[/link]


© «Bitrix24», 2001-2024
Up